Mercurial > pidgin
comparison src/xmlnode.h @ 10848:98de05966d6d
[gaim-migrate @ 12520]
size_t is unsigned, so -1 is technically bad
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 19 Apr 2005 04:06:57 +0000 |
parents | 703f722d076f |
children | b7af9100af6c |
comparison
equal
deleted
inserted
replaced
10847:a3ce85181220 | 10848:98de05966d6d |
---|---|
112 * @param node The node to insert data into. | 112 * @param node The node to insert data into. |
113 * @param data The data to insert. | 113 * @param data The data to insert. |
114 * @param size The size of the data to insert. If data is | 114 * @param size The size of the data to insert. If data is |
115 * null-terminated you can pass in -1. | 115 * null-terminated you can pass in -1. |
116 */ | 116 */ |
117 void xmlnode_insert_data(xmlnode *node, const char *data, size_t size); | 117 void xmlnode_insert_data(xmlnode *node, const char *data, gssize size); |
118 | 118 |
119 /** | 119 /** |
120 * Gets data from a node. | 120 * Gets data from a node. |
121 * | 121 * |
122 * @param node The node to get data from. | 122 * @param node The node to get data from. |
183 * @param str The string of xml. | 183 * @param str The string of xml. |
184 * @param size The size of the string. | 184 * @param size The size of the string. |
185 * | 185 * |
186 * @return The new node. | 186 * @return The new node. |
187 */ | 187 */ |
188 xmlnode *xmlnode_from_str(const char *str, size_t size); | 188 xmlnode *xmlnode_from_str(const char *str, gssize size); |
189 | 189 |
190 /** | 190 /** |
191 * Creates a new node from the source node. | 191 * Creates a new node from the source node. |
192 * | 192 * |
193 * @param src The node to copy. | 193 * @param src The node to copy. |