diff options
| author | David Sommerseth <davids@redhat.com> | 2009-06-02 15:46:37 +0200 |
|---|---|---|
| committer | David Sommerseth <davids@redhat.com> | 2009-06-02 15:54:49 +0200 |
| commit | 7e1ef7e718976c6a0ab92c01990a130203860ff5 (patch) | |
| tree | e5878cd7239b0cf411e77417554ef5cbac885ec9 /src/dmixml.h | |
| parent | 033bd9e5008120546f8d6c973376e848f7a67f00 (diff) | |
| download | python-dmidecode-7e1ef7e718976c6a0ab92c01990a130203860ff5.tar.gz python-dmidecode-7e1ef7e718976c6a0ab92c01990a130203860ff5.tar.xz python-dmidecode-7e1ef7e718976c6a0ab92c01990a130203860ff5.zip | |
Rewrote dmixml_FindNodeByAttr(...) function to also use TagName
The previous version did not consider the tag name when searching for nodes.
Diffstat (limited to 'src/dmixml.h')
| -rw-r--r-- | src/dmixml.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dmixml.h b/src/dmixml.h index f394137..c78d8b0 100644 --- a/src/dmixml.h +++ b/src/dmixml.h @@ -37,7 +37,7 @@ xmlNode *dmixml_AddTextChild(xmlNode *node, const char *tagname, const char *fmt xmlNode *dmixml_AddTextContent(xmlNode *node, const char *fmt, ...); char *dmixml_GetAttrValue(xmlNode *node, const char *key); -xmlNode *dmixml_FindNodeByAttr(xmlNode *node, const char *key, const char *val); +xmlNode *dmixml_FindNodeByAttr(xmlNode *node, const char *tagkey, const char *attrkey, const char *val); xmlNode *dmixml_FindNode(xmlNode *, const char *key); inline char *dmixml_GetContent(xmlNode *node); inline char *dmixml_GetNodeContent(xmlNode *node, const char *key); |
