ossp-pkg/cfg/cfg_syn.c 1.4 -> 1.5
--- cfg_syn.c 2002/07/05 15:21:19 1.4
+++ cfg_syn.c 2002/07/05 15:32:42 1.5
@@ -275,3 +275,23 @@
return CFG_OK;
}
+static cfg_rc_t cfg_syn_destroy_node(cfg_node_t *node)
+{
+ if (node == NULL)
+ return CFG_ERR_ARG;
+ if (node->child1 != NULL)
+ cfg_syn_destroy_node(node->child1);
+ if (node->rbroth != NULL)
+ cfg_syn_destroy_node(node->rbroth);
+ cfg_node_destroy(node);
+ return CFG_OK;
+}
+
+cfg_rc_t cfg_syn_destroy(cfg_t *cfg, cfg_node_t *node)
+{
+ if (node == NULL)
+ return CFG_ERR_ARG;
+ cfg_syn_destroy_node(node);
+ return CFG_OK;
+}
+
|
|