private.h 341 B

123456789101112131415161718
  1. #ifndef VERSION
  2. #define VERSION "1.0.0"
  3. #endif
  4. /** @brief Command line and config file options
  5. */
  6. struct options {
  7. bool_t verbose;
  8. char *socket;
  9. };
  10. // Options
  11. void help(int status, const char *argv0);
  12. struct options *opts_init(void);
  13. void opts_free(struct options *opts);
  14. int opts_parse(int argc, char *argv[], struct options *opts);