1
0

private.h 399 B

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