summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/plist/plist.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h
index b7b0fa4..c289158 100644
--- a/include/plist/plist.h
+++ b/include/plist/plist.h
@@ -71,8 +71,6 @@ extern "C" {
71 PLIST_REAL, /**< Real, scalar type */ 71 PLIST_REAL, /**< Real, scalar type */
72 PLIST_STRING, 72 PLIST_STRING,
73 /**< ASCII string, scalar type */ 73 /**< ASCII string, scalar type */
74 PLIST_UNICODE,
75 /**< Unicode strin, scalar type */
76 PLIST_ARRAY,/**< Ordered array, structured type */ 74 PLIST_ARRAY,/**< Ordered array, structured type */
77 PLIST_DICT, /**< Unordered dictionary (key/value pair), structured type */ 75 PLIST_DICT, /**< Unordered dictionary (key/value pair), structured type */
78 PLIST_DATE, /**< Date, scalar type */ 76 PLIST_DATE, /**< Date, scalar type */
@@ -189,7 +187,7 @@ extern "C" {
189 * (ie #PLIST_DICT or #PLIST_ARRAY). 187 * (ie #PLIST_DICT or #PLIST_ARRAY).
190 * 188 *
191 * @param node the node to add a children to 189 * @param node the node to add a children to
192 * @param val the string value encoded as an ASCII string (must be null terminated) 190 * @param val the string value encoded as an ASCII or UTF-8 string (must be null terminated)
193 */ 191 */
194 PLIST_API void plist_add_sub_string_el(plist_t node, const char *val); 192 PLIST_API void plist_add_sub_string_el(plist_t node, const char *val);
195 193
@@ -231,15 +229,6 @@ extern "C" {
231 PLIST_API void plist_add_sub_data_el(plist_t node, const char *val, uint64_t length); 229 PLIST_API void plist_add_sub_data_el(plist_t node, const char *val, uint64_t length);
232 230
233/** 231/**
234 * Add a subnode of type #PLIST_UNICODE to a node. The node must be of a structured type
235 * (ie #PLIST_DICT or #PLIST_ARRAY).
236 *
237 * @param node the node to add a children to
238 * @param val the unicode string encoded in UTF-8 (must be null terminated)
239 */
240 PLIST_API void plist_add_sub_unicode_el(plist_t node, const char *val);
241
242/**
243 * Add a subnode of type #PLIST_DATE to a node. The node must be of a structured type 232 * Add a subnode of type #PLIST_DATE to a node. The node must be of a structured type
244 * (ie #PLIST_DICT or #PLIST_ARRAY). 233 * (ie #PLIST_DICT or #PLIST_ARRAY).
245 * 234 *
@@ -280,7 +269,7 @@ extern "C" {
280 * 269 *
281 * @param node the node 270 * @param node the node
282 * @param val a pointer to a C-string. This function allocates the memory, 271 * @param val a pointer to a C-string. This function allocates the memory,
283 * caller is responsible for freeing it. 272 * caller is responsible for freeing it. Data is UTF-8 encoded.
284 */ 273 */
285 PLIST_API void plist_get_string_val(plist_t node, char **val); 274 PLIST_API void plist_get_string_val(plist_t node, char **val);
286 275
@@ -322,16 +311,6 @@ extern "C" {
322 PLIST_API void plist_get_data_val(plist_t node, char **val, uint64_t * length); 311 PLIST_API void plist_get_data_val(plist_t node, char **val, uint64_t * length);
323 312
324/** 313/**
325 * Get the value of a #PLIST_UNICODE node.
326 * This function does nothing if node is not of type #PLIST_UNICODE
327 *
328 * @param node the node
329 * @param val a pointer to a C-string. This function allocates the memory,
330 * caller is responsible for freeing it. Data is UTF-8 encoded.
331 */
332 PLIST_API void plist_get_unicode_val(plist_t node, char **val);
333
334/**
335 * Get the value of a #PLIST_DATE node. 314 * Get the value of a #PLIST_DATE node.
336 * This function does nothing if node is not of type #PLIST_DATE 315 * This function does nothing if node is not of type #PLIST_DATE
337 * 316 *