Mercurial > pidgin
diff libgaim/xmlnode.h @ 15203:f814b2df9cce
[gaim-migrate @ 17993]
Blocking on Google Talk. Our Privacy API sucks so bad that even with no prior support for blocking in Jabber, this has no interface changes. If someone wanted to implement the deprecated Jabber privacy lists API, though, that would be ok by me.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Thu, 14 Dec 2006 04:56:54 +0000 |
| parents | 50f263712df1 |
| children |
line wrap: on
line diff
--- a/libgaim/xmlnode.h Thu Dec 14 04:17:02 2006 +0000 +++ b/libgaim/xmlnode.h Thu Dec 14 04:56:54 2006 +0000 @@ -143,6 +143,16 @@ void xmlnode_set_attrib(xmlnode *node, const char *attr, const char *value); /** + * Sets a namespaced attribute for a node + * + * @param node The node to set an attribute for. + * @param attr The name of the attribute to set + * @param xmlns The namespace of the attribute to ste + * @param value The value of the attribute + */ +void xmlnode_set_attrib_with_namespace(xmlnode *node, const char *attr, const char *xmlns, const char *value); + +/** * Gets an attribute from a node. * * @param node The node to get an attribute from. @@ -153,6 +163,17 @@ const char *xmlnode_get_attrib(xmlnode *node, const char *attr); /** + * Gets a namespaced attribute from a node + * + * @param node The node to get an attribute from. + * @param attr The attribute to get + * @param xmlns The namespace of the attribute to get + * + * @return The value of the attribute/ + */ +const char *xmlnode_get_attrib_with_namespace(xmlnode *node, const char *attr, const char *xmlns); + +/** * Removes an attribute from a node. * * @param node The node to remove an attribute from. @@ -161,6 +182,15 @@ void xmlnode_remove_attrib(xmlnode *node, const char *attr); /** + * Removes a namespaced attribute from a node + * + * @param node The node to remove an attribute from + * @param attr The attribute to remove + * @param xmlns The namespace of the attribute to remove + */ +void xmlnode_remove_attrib_with_namespace(xmlnode *node, const char *attr, const char *xmlns); + +/** * Sets the namespace of a node * * @param node The node to qualify
