2
0

001.c 657 B

1234567891011121314151617181920212223242526272829
  1. #include <gnunet/platform.h>
  2. #include <gnunet/gnunet_util_lib.h>
  3. static int ret;
  4. static void
  5. run (void *cls,
  6. char *const *args,
  7. const char *cfgfile,
  8. const struct GNUNET_CONFIGURATION_Handle *cfg)
  9. {
  10. // main code here
  11. ret = 0;
  12. }
  13. int
  14. main (int argc, char *const *argv)
  15. {
  16. struct GNUNET_GETOPT_CommandLineOption options[] = {
  17. GNUNET_GETOPT_OPTION_END
  18. };
  19. return (GNUNET_OK ==
  20. GNUNET_PROGRAM_run (argc,
  21. argv,
  22. "binary-name",
  23. gettext_noop ("binary description text"),
  24. options, &run, NULL)) ? ret : 1;
  25. }