diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-03-11 18:24:14 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2023-03-11 18:24:14 +0100 |
commit | 3cd3fca072b0f0958d260a5b147bb09df165bd0f (patch) | |
tree | c9a7de96002ffaa5df663540398f81d7ba69241e /include/libHX/libxml_helper.h | |
parent | 2feb2da15867887be02beaadf9a92d2e8a997b85 (diff) | |
parent | 980784c1917f19bfd2e9b11faca76d14e8589daa (diff) |
Update upstream source from tag 'upstream/4.12'
Update to upstream version '4.12'
with Debian dir 2e81fc9e49b613c77c6c552b837c5a8ee952b59b
Diffstat (limited to 'include/libHX/libxml_helper.h')
-rw-r--r-- | include/libHX/libxml_helper.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/libHX/libxml_helper.h b/include/libHX/libxml_helper.h index ebe5613..08a0a07 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<const xmlNode *>(node), nsprefix, attr); +} #endif #endif /* _LIBHX_LIBXML_HELPER_H */ |