Commit 396c32c4 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

conf: move structures out of public API header



Change-Id: Id2a7f083d959c9bbe493c383e6c9578de34c5eae
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 075e15c1
Loading
Loading
Loading
Loading
+4 −23
Original line number Diff line number Diff line
@@ -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);
+24 −0
Original line number Diff line number Diff line
@@ -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