private.h 364 B

12345678910111213141516171819
  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 *unix_socket_path;
  9. char *line;
  10. };
  11. // Options
  12. void help(int status, const char *argv0);
  13. struct options *opts_init(void);
  14. void opts_free(struct options *opts);
  15. int opts_parse(int argc, char *argv[], struct options *opts);