private.h 420 B

12345678910111213141516171819202122
  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. faux_list_t *files;
  12. };
  13. // Options
  14. void help(int status, const char *argv0);
  15. struct options *opts_init(void);
  16. void opts_free(struct options *opts);
  17. int opts_parse(int argc, char *argv[], struct options *opts);