conf: move structures out of public API header
Change-Id: Id2a7f083d959c9bbe493c383e6c9578de34c5eae Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
075e15c164
commit
396c32c48f
@ -41,29 +41,10 @@
|
|||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
struct spdk_conf_value {
|
struct spdk_conf_value;
|
||||||
struct spdk_conf_value *next;
|
struct spdk_conf_item;
|
||||||
char *value;
|
struct spdk_conf_section;
|
||||||
};
|
struct spdk_conf;
|
||||||
|
|
||||||
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 *spdk_conf_allocate(void);
|
struct spdk_conf *spdk_conf_allocate(void);
|
||||||
void spdk_conf_free(struct spdk_conf *cp);
|
void spdk_conf_free(struct spdk_conf *cp);
|
||||||
|
@ -42,6 +42,30 @@
|
|||||||
|
|
||||||
#include "spdk/string.h"
|
#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 CF_DELIM " \t"
|
||||||
|
|
||||||
#define LIB_MAX_TMPBUF 1024
|
#define LIB_MAX_TMPBUF 1024
|
||||||
|
Loading…
Reference in New Issue
Block a user