summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/plist/plist.h30
1 files changed, 20 insertions, 10 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h
index 67050ee..0f69d40 100644
--- a/include/plist/plist.h
+++ b/include/plist/plist.h
@@ -103,17 +103,18 @@ extern "C"
103 */ 103 */
104 typedef enum 104 typedef enum
105 { 105 {
106 PLIST_BOOLEAN, /**< Boolean, scalar type */ 106 PLIST_BOOLEAN, /**< Boolean, scalar type */
107 PLIST_UINT, /**< Unsigned integer, scalar type */ 107 PLIST_UINT, /**< Unsigned integer, scalar type */
108 PLIST_REAL, /**< Real, scalar type */ 108 PLIST_REAL, /**< Real, scalar type */
109 PLIST_STRING, /**< ASCII string, scalar type */ 109 PLIST_STRING, /**< ASCII string, scalar type */
110 PLIST_ARRAY, /**< Ordered array, structured type */ 110 PLIST_ARRAY, /**< Ordered array, structured type */
111 PLIST_DICT, /**< Unordered dictionary (key/value pair), structured type */ 111 PLIST_DICT, /**< Unordered dictionary (key/value pair), structured type */
112 PLIST_DATE, /**< Date, scalar type */ 112 PLIST_DATE, /**< Date, scalar type */
113 PLIST_DATA, /**< Binary data, scalar type */ 113 PLIST_DATA, /**< Binary data, scalar type */
114 PLIST_KEY, /**< Key in dictionaries (ASCII String), scalar type */ 114 PLIST_KEY, /**< Key in dictionaries (ASCII String), scalar type */
115 PLIST_UID, /**< Special type used for 'keyed encoding' */ 115 PLIST_UID, /**< Special type used for 'keyed encoding' */
116 PLIST_NONE /**< No type */ 116 PLIST_NULL, /**< NULL type */
117 PLIST_NONE /**< No type */
117 } plist_type; 118 } plist_type;
118 119
119 120
@@ -205,6 +206,15 @@ extern "C"
205 plist_t plist_new_uid(uint64_t val); 206 plist_t plist_new_uid(uint64_t val);
206 207
207 /** 208 /**
209 * Create a new plist_t type #PLIST_NULL
210 * @return the created item
211 * @sa #plist_type
212 * @note This type is not valid for all formats, e.g. the XML format
213 * does not support it.
214 */
215 plist_t plist_new_null(void);
216
217 /**
208 * Destruct a plist_t node and all its children recursively 218 * Destruct a plist_t node and all its children recursively
209 * 219 *
210 * @param plist the plist to free 220 * @param plist the plist to free