Edmond Yoo
2018-10-13 17c776a0eab276e9d1057cb1abf8fd7d77d54ada
src/option_list.h
@@ -2,6 +2,20 @@
#define OPTION_LIST_H
#include "list.h"
#ifdef YOLODLL_EXPORTS
#if defined(_MSC_VER)
#define YOLODLL_API __declspec(dllexport)
#else
#define YOLODLL_API __attribute__((visibility("default")))
#endif
#else
#if defined(_MSC_VER)
#define YOLODLL_API
#else
#define YOLODLL_API
#endif
#endif
typedef struct{
    char *key;
    char *val;
@@ -9,6 +23,8 @@
} kvp;
list *read_data_cfg(char *filename);
int read_option(char *s, list *options);
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);
@@ -18,4 +34,11 @@
float option_find_float_quiet(list *l, char *key, float def);
void option_unused(list *l);
typedef struct {
   int classes;
   char **names;
} metadata;
YOLODLL_API metadata get_metadata(char *file);
#endif