libpurple/xmlnode.h

changeset 32313
3f58eb41a9a8
parent 32206
a2c62b07ae5a
child 32321
ae17a89ef666
equal deleted inserted replaced
32312:44c2bc252f60 32313:3f58eb41a9a8
155 * @param attr The name of the attribute. 155 * @param attr The name of the attribute.
156 * @param value The value of the attribute. 156 * @param value The value of the attribute.
157 */ 157 */
158 void xmlnode_set_attrib(xmlnode *node, const char *attr, const char *value); 158 void xmlnode_set_attrib(xmlnode *node, const char *attr, const char *value);
159 159
160 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_XMLNODE_C_) 160 /**
161 /** 161 * Sets a namespaced attribute for a node
162 * Sets a prefixed attribute for a node
163 * 162 *
164 * @param node The node to set an attribute for. 163 * @param node The node to set an attribute for.
165 * @param attr The name of the attribute to set 164 * @param attr The name of the attribute to set
166 * @param prefix The prefix of the attribute to ste 165 * @param xmlns The namespace of the attribute to set
166 * @param prefix The prefix of the attribute to set
167 * @param value The value of the attribute 167 * @param value The value of the attribute
168 *
169 * @deprecated Use xmlnode_set_attrib_full instead.
170 */
171 void xmlnode_set_attrib_with_prefix(xmlnode *node, const char *attr, const char *prefix, const char *value);
172
173 /**
174 * Sets a namespaced attribute for a node
175 *
176 * @param node The node to set an attribute for.
177 * @param attr The name of the attribute to set
178 * @param xmlns The namespace of the attribute to ste
179 * @param value The value of the attribute
180 *
181 * @deprecated Use xmlnode_set_attrib_full instead.
182 */
183 void xmlnode_set_attrib_with_namespace(xmlnode *node, const char *attr, const char *xmlns, const char *value);
184 #endif /* PURPLE_DISABLE_DEPRECATED */
185
186 /**
187 * Sets a namespaced attribute for a node
188 *
189 * @param node The node to set an attribute for.
190 * @param attr The name of the attribute to set
191 * @param xmlns The namespace of the attribute to ste
192 * @param prefix The prefix of the attribute to ste
193 * @param value The value of the attribute
194 *
195 * @since 2.6.0
196 */ 168 */
197 void xmlnode_set_attrib_full(xmlnode *node, const char *attr, const char *xmlns, 169 void xmlnode_set_attrib_full(xmlnode *node, const char *attr, const char *xmlns,
198 const char *prefix, const char *value); 170 const char *prefix, const char *value);
199 171
200 /** 172 /**
271 * Gets the parent node. 243 * Gets the parent node.
272 * 244 *
273 * @param child The child node. 245 * @param child The child node.
274 * 246 *
275 * @return The parent or NULL. 247 * @return The parent or NULL.
276 *
277 * @since 2.6.0
278 */ 248 */
279 xmlnode *xmlnode_get_parent(const xmlnode *child); 249 xmlnode *xmlnode_get_parent(const xmlnode *child);
280 250
281 /** 251 /**
282 * Returns the node in a string of xml. 252 * Returns the node in a string of xml.
341 * the user if the file cannot be read. 311 * the user if the file cannot be read.
342 * @param process The subsystem that is calling xmlnode_from_file. Used as 312 * @param process The subsystem that is calling xmlnode_from_file. Used as
343 * the category for debugging. 313 * the category for debugging.
344 * 314 *
345 * @return The new node or NULL if an error occurred. 315 * @return The new node or NULL if an error occurred.
346 *
347 * @since 2.6.0
348 */ 316 */
349 xmlnode *xmlnode_from_file(const char *dir, const char *filename, 317 xmlnode *xmlnode_from_file(const char *dir, const char *filename,
350 const char *description, const char *process); 318 const char *description, const char *process);
351 319
352 #ifdef __cplusplus 320 #ifdef __cplusplus
353 } 321 }
354 #endif 322 #endif
355 323
356 #endif /* _PURPLE_XMLNODE_H_ */ 324 #endif /* _PURPLE_XMLNODE_H_ */
325

mercurial