summaryrefslogtreecommitdiff
path: root/include/libHX/libxml_helper.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2023-07-21 21:23:33 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2023-07-21 21:23:33 +0200
commit6eddfddeb9da77b6523d8e1ebc2e75c8b5dc5ac9 (patch)
treea91cb3fe015335f1e39d15cfb43d9d1d934fb679 /include/libHX/libxml_helper.h
parent7501bff8432444b7ae8e7f3d9289c0d61f3f0b64 (diff)
parent448048363acac15d165200cfdabda02a0e8b9e9b (diff)
Merge branch 'release/debian/4.14-1'debian/4.14-1
Diffstat (limited to 'include/libHX/libxml_helper.h')
-rw-r--r--include/libHX/libxml_helper.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/libHX/libxml_helper.h b/include/libHX/libxml_helper.h
index ebe5613..5a02bf0 100644
--- a/include/libHX/libxml_helper.h
+++ b/include/libHX/libxml_helper.h
@@ -7,6 +7,7 @@
# include <string.h>
#endif
#include <libxml/parser.h>
+#include <libHX/defs.h>
#ifdef __cplusplus
extern "C" {
@@ -30,6 +31,10 @@ static __inline__ int xml_strcasecmp(const xmlChar *a, const char *b)
#endif
}
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
static __inline__ char *xml_getprop(xmlNode *node, const char *attr)
{
#ifdef __cplusplus
@@ -106,7 +111,15 @@ xml_setprop(xmlNode *node, const char *name, const char *value)
}
#ifdef __cplusplus
-} /* extern "C" */
+static __inline__ const char *xml_getprop(const xmlNode *node, const char *attr)
+{
+ return xml_getprop(const_cast<xmlNode *>(node), attr);
+}
+static __inline__ char *xml_getnsprop(const xmlNode *node, const char *nsprefix,
+ const char *attr)
+{
+ return xml_getnsprop(const_cast<xmlNode *>(node), nsprefix, attr);
+}
#endif
#endif /* _LIBHX_LIBXML_HELPER_H */