opts-parser.h 413 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <stddef.h>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. struct obs_option {
  7. char *name;
  8. char *value;
  9. };
  10. struct obs_options {
  11. size_t count;
  12. struct obs_option *options;
  13. size_t ignored_word_count;
  14. char **ignored_words;
  15. char **input_words;
  16. };
  17. struct obs_options obs_parse_options(const char *options_string);
  18. void obs_free_options(struct obs_options options);
  19. #ifdef __cplusplus
  20. }
  21. #endif