summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_xml.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_xml.h')
-rw-r--r--protocols/JabberG/src/jabber_xml.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/protocols/JabberG/src/jabber_xml.h b/protocols/JabberG/src/jabber_xml.h
index c194307efd..60f4530f70 100644
--- a/protocols/JabberG/src/jabber_xml.h
+++ b/protocols/JabberG/src/jabber_xml.h
@@ -32,15 +32,13 @@ TiXmlElement* XmlAddChild(TiXmlElement*, const char *pszName);
TiXmlElement* XmlAddChild(TiXmlElement*, const char *pszName, const char *ptszValue);
TiXmlElement* XmlAddChild(TiXmlElement*, const char *pszName, int iValue);
-const TiXmlElement* XmlGetChildByTag(const TiXmlElement*, const char *key, const char *attrName, const char *attrValue);
+int XmlGetChildInt(const TiXmlElement *hXml, const char *key);
+const char* XmlGetChildText(const TiXmlElement *hXml, const char *key);
+const TiXmlElement* XmlGetChildByTag(const TiXmlElement *hXml, const char *key, const char *attrName, const char *attrValue);
void XmlAddAttr(TiXmlElement*, const char *pszName, const char *ptszValue);
void XmlAddAttrID(TiXmlElement*, int id);
-int XmlGetAttrCount(TiXmlElement*);
-const char* XmlGetAttr(TiXmlElement*, int n);
-const char* XmlGetAttrName(TiXmlElement*, int n);
-
class XmlNode : public TiXmlDocument, private MNonCopyable
{
TiXmlElement *m_hXml;
@@ -228,11 +226,6 @@ public:
}
return nullptr;
}
- operator int()
- {
- if (LPCSTR s = *this) return atoi(s);
- return 0;
- }
__forceinline bool operator== (char *str)
{
return !mir_strcmp(*this, str);