Mercurial > pidgin.yaz
comparison libpurple/xmlnode.h @ 18684:5c1ed6296b56
propagate from branch 'im.pidgin.pidgin' (head b195e262642015df66e36d33e9dd16ecae5df9d5)
to branch 'im.pidgin.soc.2007.xmpp' (head 06f9dbd73b69e26dc9f56873a9ce106146bb1b18)
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Wed, 11 Jul 2007 22:27:44 +0000 |
parents | df5bb342b10e 3fc94e7c7056 |
children | 481749fc0b6b |
comparison
equal
deleted
inserted
replaced
17634:8d2ea5072f6f | 18684:5c1ed6296b56 |
---|---|
122 * null-terminated you can pass in -1. | 122 * null-terminated you can pass in -1. |
123 */ | 123 */ |
124 void xmlnode_insert_data(xmlnode *node, const char *data, gssize size); | 124 void xmlnode_insert_data(xmlnode *node, const char *data, gssize size); |
125 | 125 |
126 /** | 126 /** |
127 * Gets data from a node. | 127 * Gets (escaped) data from a node. |
128 * | 128 * |
129 * @param node The node to get data from. | 129 * @param node The node to get data from. |
130 * | 130 * |
131 * @return The data from the node. You must g_free | 131 * @return The data from the node. This data is in raw escaped format. |
132 * You must g_free this string when finished using it. | |
133 */ | |
134 char *xmlnode_get_data(xmlnode *node); | |
135 | |
136 /** | |
137 * Gets unescaped data from a node. | |
138 * | |
139 * @param node The node to get data from. | |
140 * | |
141 * @return The data from the node, in unescaped form. You must g_free | |
132 * this string when finished using it. | 142 * this string when finished using it. |
133 */ | 143 */ |
134 char *xmlnode_get_data(xmlnode *node); | 144 char *xmlnode_get_data_unescaped(xmlnode *node); |
135 | 145 |
136 /** | 146 /** |
137 * Sets an attribute for a node. | 147 * Sets an attribute for a node. |
138 * | 148 * |
139 * @param node The node to set an attribute for. | 149 * @param node The node to set an attribute for. |