summaryrefslogtreecommitdiffstats
path: root/src/dmixml.h
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-04-30 16:07:43 +0200
committerDavid Sommerseth <davids@redhat.com>2009-04-30 16:07:43 +0200
commitcea1270777d0a5bd42284011307fe183a67f8ada (patch)
tree484fe523e3d8ccb36aa0bd6ba437926b3b6ab7c2 /src/dmixml.h
parent6453a1131547b71c4a21a978fd9588d67d056233 (diff)
downloadpython-dmidecode-cea1270777d0a5bd42284011307fe183a67f8ada.tar.gz
python-dmidecode-cea1270777d0a5bd42284011307fe183a67f8ada.tar.xz
python-dmidecode-cea1270777d0a5bd42284011307fe183a67f8ada.zip
Rewritten dmixml_GetXPathContent(...) and _get_key_value(...)
This rewrite was to handle XPATH_NUMBER more correctly. Now these functions needs an preallocated memory buffer for the result.
Diffstat (limited to 'src/dmixml.h')
-rw-r--r--src/dmixml.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dmixml.h b/src/dmixml.h
index 7176483..b1d86c6 100644
--- a/src/dmixml.h
+++ b/src/dmixml.h
@@ -38,6 +38,6 @@ char *dmixml_GetAttrValue(xmlNode *node, const char *key);
xmlNode *dmixml_FindNode(xmlNode *, const char *key);
inline char *dmixml_GetContent(xmlNode *node);
inline char *dmixml_GetNodeContent(xmlNode *node, const char *key);
-char *dmixml_GetXPathContent(xmlXPathObject *xpo, int idx);
+char *dmixml_GetXPathContent(char *buf, size_t buflen, xmlXPathObject *xpo, int idx);
#endif