summaryrefslogtreecommitdiff
path: root/libdaemon
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2015-03-31 21:50:29 +0200
committerPetr Rockai <prockai@redhat.com>2015-04-14 20:16:53 +0200
commit2ebb4f4ca3a9e36969007851c7be20c5dc4d85a0 (patch)
tree9ab30107f34f92159767b7b22114ad224fb5f336 /libdaemon
parente3c831030d7bb3879cd354f1953df055b56b71f8 (diff)
downloadlvm2-2ebb4f4ca3a9e36969007851c7be20c5dc4d85a0.tar.gz
libdaemon: Export chain_node from config-utils.c.
Diffstat (limited to 'libdaemon')
-rw-r--r--libdaemon/client/config-util.c6
-rw-r--r--libdaemon/client/config-util.h4
2 files changed, 7 insertions, 3 deletions
diff --git a/libdaemon/client/config-util.c b/libdaemon/client/config-util.c
index e5f4e2205..4ebbe1bc2 100644
--- a/libdaemon/client/config-util.c
+++ b/libdaemon/client/config-util.c
@@ -132,9 +132,9 @@ int set_flag(struct dm_config_tree *cft, struct dm_config_node *parent,
return 1;
}
-static void chain_node(struct dm_config_node *cn,
- struct dm_config_node *parent,
- struct dm_config_node *pre_sib)
+void chain_node(struct dm_config_node *cn,
+ struct dm_config_node *parent,
+ struct dm_config_node *pre_sib)
{
cn->parent = parent;
cn->sib = NULL;
diff --git a/libdaemon/client/config-util.h b/libdaemon/client/config-util.h
index 47fab6bcb..58468ef54 100644
--- a/libdaemon/client/config-util.h
+++ b/libdaemon/client/config-util.h
@@ -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,
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,
const char *key,
struct dm_config_node *parent,