comparison 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
comparison
equal deleted inserted replaced
15202:b8ae75fa8d67 15203:f814b2df9cce
141 * @param value The value of the attribute. 141 * @param value The value of the attribute.
142 */ 142 */
143 void xmlnode_set_attrib(xmlnode *node, const char *attr, const char *value); 143 void xmlnode_set_attrib(xmlnode *node, const char *attr, const char *value);
144 144
145 /** 145 /**
146 * Sets a namespaced attribute for a node
147 *
148 * @param node The node to set an attribute for.
149 * @param attr The name of the attribute to set
150 * @param xmlns The namespace of the attribute to ste
151 * @param value The value of the attribute
152 */
153 void xmlnode_set_attrib_with_namespace(xmlnode *node, const char *attr, const char *xmlns, const char *value);
154
155 /**
146 * Gets an attribute from a node. 156 * Gets an attribute from a node.
147 * 157 *
148 * @param node The node to get an attribute from. 158 * @param node The node to get an attribute from.
149 * @param attr The attribute to get. 159 * @param attr The attribute to get.
150 * 160 *
151 * @return The value of the attribute. 161 * @return The value of the attribute.
152 */ 162 */
153 const char *xmlnode_get_attrib(xmlnode *node, const char *attr); 163 const char *xmlnode_get_attrib(xmlnode *node, const char *attr);
154 164
155 /** 165 /**
166 * Gets a namespaced attribute from a node
167 *
168 * @param node The node to get an attribute from.
169 * @param attr The attribute to get
170 * @param xmlns The namespace of the attribute to get
171 *
172 * @return The value of the attribute/
173 */
174 const char *xmlnode_get_attrib_with_namespace(xmlnode *node, const char *attr, const char *xmlns);
175
176 /**
156 * Removes an attribute from a node. 177 * Removes an attribute from a node.
157 * 178 *
158 * @param node The node to remove an attribute from. 179 * @param node The node to remove an attribute from.
159 * @param attr The attribute to remove. 180 * @param attr The attribute to remove.
160 */ 181 */
161 void xmlnode_remove_attrib(xmlnode *node, const char *attr); 182 void xmlnode_remove_attrib(xmlnode *node, const char *attr);
183
184 /**
185 * Removes a namespaced attribute from a node
186 *
187 * @param node The node to remove an attribute from
188 * @param attr The attribute to remove
189 * @param xmlns The namespace of the attribute to remove
190 */
191 void xmlnode_remove_attrib_with_namespace(xmlnode *node, const char *attr, const char *xmlns);
162 192
163 /** 193 /**
164 * Sets the namespace of a node 194 * Sets the namespace of a node
165 * 195 *
166 * @param node The node to qualify 196 * @param node The node to qualify