diff --git a/include/spdk/conf.h b/include/spdk/conf.h index 284531629..efbea13a2 100644 --- a/include/spdk/conf.h +++ b/include/spdk/conf.h @@ -41,29 +41,10 @@ #include -struct spdk_conf_value { - struct spdk_conf_value *next; - char *value; -}; - -struct spdk_conf_item { - struct spdk_conf_item *next; - char *key; - struct spdk_conf_value *val; -}; - -struct spdk_conf_section { - struct spdk_conf_section *next; - char *name; - int num; - struct spdk_conf_item *item; -}; - -struct spdk_conf { - char *file; - struct spdk_conf_section *current_section; - struct spdk_conf_section *section; -}; +struct spdk_conf_value; +struct spdk_conf_item; +struct spdk_conf_section; +struct spdk_conf; struct spdk_conf *spdk_conf_allocate(void); void spdk_conf_free(struct spdk_conf *cp); diff --git a/lib/conf/conf.c b/lib/conf/conf.c index 7af1a93c4..8cbeeddca 100644 --- a/lib/conf/conf.c +++ b/lib/conf/conf.c @@ -42,6 +42,30 @@ #include "spdk/string.h" +struct spdk_conf_value { + struct spdk_conf_value *next; + char *value; +}; + +struct spdk_conf_item { + struct spdk_conf_item *next; + char *key; + struct spdk_conf_value *val; +}; + +struct spdk_conf_section { + struct spdk_conf_section *next; + char *name; + int num; + struct spdk_conf_item *item; +}; + +struct spdk_conf { + char *file; + struct spdk_conf_section *current_section; + struct spdk_conf_section *section; +}; + #define CF_DELIM " \t" #define LIB_MAX_TMPBUF 1024