Monitoring du Phytotron
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

t.c 934B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * main de test des core functions
  3. */
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <getopt.h>
  7. #include "lut1024.h"
  8. #include "config.h"
  9. int verbosity;
  10. Configuration config;
  11. /* ---------------------------------------------------------------- */
  12. int main (int argc, char *argv[])
  13. {
  14. int foo, opt;
  15. char *conffile = "dd2-monitor.conf";
  16. fprintf(stderr, "+\n+ DD2 MONITOR\n+\n");
  17. /* set some default values */
  18. verbosity = 0;
  19. while ((opt = getopt(argc, argv, "v")) != -1) {
  20. switch (opt) {
  21. case 'v': verbosity++; break;
  22. default:
  23. fprintf(stderr, "%s : uh ?", argv[0]);
  24. exit(1);
  25. break;
  26. }
  27. }
  28. foo = parse_config(conffile, 1);
  29. fprintf(stderr, "parse_config(%s) -> %d\n\n", conffile, foo);
  30. show_config("foo");
  31. foo = load_lut1024f("foo.lut1024f", NULL, 1);
  32. fprintf(stderr, "chargement de la lut --> %d\n\n", foo);
  33. return 0;
  34. }
  35. /* ---------------------------------------------------------------- */