summaryrefslogtreecommitdiff
path: root/src/common/xml.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-04-16 06:59:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-04-16 06:59:30 (GMT)
commit90f9cf977a8eb6553d6bb4963202b90e2b8ff063 (patch)
tree6bbfec29e4092632aff8ce10a8f45f7b854e0b93 /src/common/xml.h
parenta4f2f3ec4b4cf7b894d6976c884fbc446396cd00 (diff)
Created a basic tool to manage server configurations.
Diffstat (limited to 'src/common/xml.h')
-rw-r--r--src/common/xml.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/xml.h b/src/common/xml.h
index 674bfd4..f16f31e 100644
--- a/src/common/xml.h
+++ b/src/common/xml.h
@@ -122,6 +122,12 @@ xmlNodePtr add_node_to_xpath(xmlDocPtr, xmlXPathContextPtr, const char *, const
/* Ajoute un noeud à un autre noeud. */
xmlNodePtr add_node_to_node(xmlDocPtr, xmlNodePtr, const char *);
+/* Retire un noeud d'un document XML. */
+void _remove_node_from_doc(xmlDocPtr, xmlNodePtr);
+
+/* Retire un noeud d'un document XML. */
+bool remove_node_from_doc(xmlDocPtr, xmlXPathContextPtr, const char *);
+
/* S'assure qu'un noeud donné est bien présent dans le document. */
xmlNodePtr ensure_node_exist(xmlDocPtr, xmlXPathContextPtr, const char *);