Loading include/spdk/conf.h +4 −23 Original line number Diff line number Diff line Loading @@ -41,29 +41,10 @@ #include <stdbool.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; }; 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); Loading lib/conf/conf.c +24 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
include/spdk/conf.h +4 −23 Original line number Diff line number Diff line Loading @@ -41,29 +41,10 @@ #include <stdbool.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; }; 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); Loading
lib/conf/conf.c +24 −0 Original line number Diff line number Diff line Loading @@ -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 Loading