DD2-monitor/core/t.c

58 lines
938 B
C
Raw Normal View History

2019-01-14 03:20:54 +01: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 03:20:54 +01:00
int verbosity;
Configuration config;
2019-01-14 03:20:54 +01: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 03:20:54 +01:00
/* set some default values */
verbosity = 0;
2019-01-14 03:20:54 +01:00
while ((opt = getopt(argc, argv, "v")) != -1) {
switch (opt) {
case 'v': verbosity++; break;
default:
fprintf(stderr, "%s : uh ?", argv[0]);
exit(1);
break;
}
}
foo = parse_config(conffile, 1);
fprintf(stderr, "parse_config(%s) -> %d\n\n", conffile, foo);
show_config("foo");
2019-01-17 14:00:17 +01:00
/*
2019-01-14 03:20:54 +01:00
foo = load_lut1024f("foo.lut1024f", NULL, 1);
fprintf(stderr, "chargement de la lut --> %d\n\n", foo);
2019-01-17 14:00:17 +01:00
*/
2019-01-14 03:20:54 +01:00
return 0;
}
/* ---------------------------------------------------------------- */