darknet/src/option_list.h

20 lines
419 B
C
Raw Normal View History

2013-11-13 22:50:38 +04:00
#ifndef OPTION_LIST_H
#define OPTION_LIST_H
#include "list.h"
2014-02-14 22:26:31 +04:00
typedef struct{
char *key;
char *val;
int used;
} kvp;
2013-11-13 22:50:38 +04:00
void option_insert(list *l, char *key, char *val);
char *option_find(list *l, char *key);
char *option_find_str(list *l, char *key, char *def);
int option_find_int(list *l, char *key, int def);
float option_find_float(list *l, char *key, float def);
2013-11-13 22:50:38 +04:00
void option_unused(list *l);
#endif