From 396c32c48f8469f87a4e2403d4010effe6716cee Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 15 Nov 2016 15:31:34 -0700 Subject: [PATCH] conf: move structures out of public API header Change-Id: Id2a7f083d959c9bbe493c383e6c9578de34c5eae Signed-off-by: Daniel Verkamp --- include/spdk/conf.h | 27 ++++----------------------- lib/conf/conf.c | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 23 deletions(-) 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