diff options
author | Nikias Bassen | 2021-12-19 16:13:07 +0100 |
---|---|---|
committer | Nikias Bassen | 2021-12-19 16:13:07 +0100 |
commit | 810e1a5936867a9f2c9f07df3a33a9d02fc03466 (patch) | |
tree | c561f0301b98a95fddc32259978345eed8eb5cc5 /include/plist/plist.h | |
parent | c81471ce6e8821ba03427824217612dcab8e091b (diff) | |
download | libplist-810e1a5936867a9f2c9f07df3a33a9d02fc03466.tar.gz libplist-810e1a5936867a9f2c9f07df3a33a9d02fc03466.tar.bz2 |
Add support for PLIST_NULL type
Diffstat (limited to 'include/plist/plist.h')
-rw-r--r-- | include/plist/plist.h | 30 |
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" */ typedef enum { - PLIST_BOOLEAN, /**< Boolean, scalar type */ - PLIST_UINT, /**< Unsigned integer, scalar type */ - PLIST_REAL, /**< Real, scalar type */ - PLIST_STRING, /**< ASCII string, scalar type */ - PLIST_ARRAY, /**< Ordered array, structured type */ - PLIST_DICT, /**< Unordered dictionary (key/value pair), structured type */ - PLIST_DATE, /**< Date, scalar type */ - PLIST_DATA, /**< Binary data, scalar type */ - PLIST_KEY, /**< Key in dictionaries (ASCII String), scalar type */ + PLIST_BOOLEAN, /**< Boolean, scalar type */ + PLIST_UINT, /**< Unsigned integer, scalar type */ + PLIST_REAL, /**< Real, scalar type */ + PLIST_STRING, /**< ASCII string, scalar type */ + PLIST_ARRAY, /**< Ordered array, structured type */ + PLIST_DICT, /**< Unordered dictionary (key/value pair), structured type */ + PLIST_DATE, /**< Date, scalar type */ + PLIST_DATA, /**< Binary data, scalar type */ + PLIST_KEY, /**< Key in dictionaries (ASCII String), scalar type */ PLIST_UID, /**< Special type used for 'keyed encoding' */ - PLIST_NONE /**< No type */ + PLIST_NULL, /**< NULL type */ + PLIST_NONE /**< No type */ } plist_type; @@ -205,6 +206,15 @@ extern "C" plist_t plist_new_uid(uint64_t val); /** + * Create a new plist_t type #PLIST_NULL + * @return the created item + * @sa #plist_type + * @note This type is not valid for all formats, e.g. the XML format + * does not support it. + */ + plist_t plist_new_null(void); + + /** * Destruct a plist_t node and all its children recursively * * @param plist the plist to free |