From 2ebb4f4ca3a9e36969007851c7be20c5dc4d85a0 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Tue, 31 Mar 2015 21:50:29 +0200 Subject: [PATCH] libdaemon: Export chain_node from config-utils.c. --- libdaemon/client/config-util.c | 6 +++--- libdaemon/client/config-util.h | 4 ++++ 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, -- 2.43.5