1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdaemon: Export chain_node from config-utils.c.

This commit is contained in:
Petr Rockai 2015-03-31 21:50:29 +02:00
parent e3c831030d
commit 2ebb4f4ca3
2 changed files with 7 additions and 3 deletions

View File

@ -132,9 +132,9 @@ int set_flag(struct dm_config_tree *cft, struct dm_config_node *parent,
return 1; return 1;
} }
static void chain_node(struct dm_config_node *cn, void chain_node(struct dm_config_node *cn,
struct dm_config_node *parent, struct dm_config_node *parent,
struct dm_config_node *pre_sib) struct dm_config_node *pre_sib)
{ {
cn->parent = parent; cn->parent = parent;
cn->sib = NULL; cn->sib = NULL;

View File

@ -37,6 +37,10 @@ int buffer_line(const char *line, void *baton);
int set_flag(struct dm_config_tree *cft, struct dm_config_node *parent, int set_flag(struct dm_config_tree *cft, struct dm_config_node *parent,
const char *field, const char *flag, int want); const char *field, const char *flag, int want);
void chain_node(struct dm_config_node *cn,
struct dm_config_node *parent,
struct dm_config_node *pre_sib);
struct dm_config_node *make_config_node(struct dm_config_tree *cft, struct dm_config_node *make_config_node(struct dm_config_tree *cft,
const char *key, const char *key,
struct dm_config_node *parent, struct dm_config_node *parent,