DD2-monitor/core/t.c

58 lines
938 B
C
Raw Normal View History

2019-01-14 13:20:54 +11:00
/*
* main de test des core functions
*/
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include "lut1024.h"
#include "config.h"
2019-01-14 13:20:54 +11:00
int verbosity;
Configuration config;
2019-01-14 13:20:54 +11:00
/* ---------------------------------------------------------------- */
int main (int argc, char *argv[])
{
int foo, opt;
char *conffile = "dd2-monitor.conf";
fprintf(stderr, "+\n+ DD2 MONITOR\n+\n");
2019-01-14 13:20:54 +11:00
/* set some default values */
verbosity = 0;
2019-01-14 13:20:54 +11:00
while ((opt = getopt(argc, argv, "v")) != -1) {
switch (opt) {
case 'v': verbosity++; break;
default:
fprintf(stderr, "%s : uh ?", argv[0]);
exit(1);
break;
}
}
2019-01-19 03:09:15 +11:00
foo = parse_config(conffile, 0);
fprintf(stderr, "parse_config(%s) -> %d\n\n", conffile, foo);
show_config("foo");
2019-01-18 00:00:17 +11:00
/*
2019-01-14 13:20:54 +11:00
foo = load_lut1024f("foo.lut1024f", NULL, 1);
fprintf(stderr, "chargement de la lut --> %d\n\n", foo);
2019-01-18 00:00:17 +11:00
*/
2019-01-14 13:20:54 +11:00
return 0;
}
/* ---------------------------------------------------------------- */