comparison libpurple/xmlnode.h @ 26675:7c3baa45c9c4

propagate from branch 'im.pidgin.pidgin' (head 2476e13ecb1702a744a13c42956b29a962a0c7fb) to branch 'im.pidgin.cpw.darkrain42.docs' (head 0c12c56a9f1f3094bb926125a44c04a556e1dee5)
author Paul Aurich <paul@darkrain42.org>
date Fri, 27 Mar 2009 07:52:26 +0000
parents f916afb91566 b03430dae08e
children 872d30754311
comparison
equal deleted inserted replaced
26674:247e2a759ed2 26675:7c3baa45c9c4
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 prefixed attribute for a node 162 * Sets a prefixed attribute for a node
162 * 163 *
163 * @param node The node to set an attribute for. 164 * @param node The node to set an attribute for.
164 * @param attr The name of the attribute to set 165 * @param attr The name of the attribute to set
165 * @param prefix The prefix of the attribute to ste 166 * @param prefix The prefix of the attribute to ste
166 * @param value The value of the attribute 167 * @param value The value of the attribute
168 *
169 * @deprecated Use xmlnode_set_attrib_full instead.
167 */ 170 */
168 void xmlnode_set_attrib_with_prefix(xmlnode *node, const char *attr, const char *prefix, const char *value); 171 void xmlnode_set_attrib_with_prefix(xmlnode *node, const char *attr, const char *prefix, const char *value);
169 172
170 /** 173 /**
171 * Sets a namespaced attribute for a node 174 * Sets a namespaced attribute for a node
172 * 175 *
173 * @param node The node to set an attribute for. 176 * @param node The node to set an attribute for.
174 * @param attr The name of the attribute to set 177 * @param attr The name of the attribute to set
175 * @param xmlns The namespace of the attribute to ste 178 * @param xmlns The namespace of the attribute to ste
176 * @param value The value of the attribute 179 * @param value The value of the attribute
180 *
181 * @deprecated Use xmlnode_set_attrib_full instead.
177 */ 182 */
178 void xmlnode_set_attrib_with_namespace(xmlnode *node, const char *attr, const char *xmlns, const char *value); 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 */
197 void xmlnode_set_attrib_full(xmlnode *node, const char *attr, const char *xmlns,
198 const char *prefix, const char *value);
179 199
180 /** 200 /**
181 * Gets an attribute from a node. 201 * Gets an attribute from a node.
182 * 202 *
183 * @param node The node to get an attribute from. 203 * @param node The node to get an attribute from.