You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
496 B

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef OPTION_LIST_H
  2. #define OPTION_LIST_H
  3. #include "list.h"
  4. namespace DN{
  5. typedef struct{
  6. char *key;
  7. char *val;
  8. int used;
  9. } kvp;
  10. int read_option(char *s, list *options);
  11. void option_insert(list *l, char *key, char *val);
  12. char *option_find(list *l, char *key);
  13. int option_find_int_quiet(list *l, char *key, int def);
  14. float option_find_float(list *l, char *key, float def);
  15. float option_find_float_quiet(list *l, char *key, float def);
  16. void option_unused(list *l);
  17. };
  18. #endif