summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-09-16 06:03:57 +0200
committerGravatar Nikias Bassen2012-09-16 06:03:57 +0200
commit817749dd4e27768da64e3883fe04580cd22461a8 (patch)
tree1fbe11711f085da8db8b128a9f09eebd1aa06daa /include
parentfee6a9eacd62ddc7ce969413dd4083d4f4804120 (diff)
downloadlibplist-817749dd4e27768da64e3883fe04580cd22461a8.tar.gz
libplist-817749dd4e27768da64e3883fe04580cd22461a8.tar.bz2
implemented handling of UID keyed encoding type
Diffstat (limited to 'include')
-rw-r--r--include/plist/plist.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h
index 1b1ac52..546e108 100644
--- a/include/plist/plist.h
+++ b/include/plist/plist.h
@@ -83,6 +83,7 @@ extern "C"
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_type;
@@ -166,6 +167,15 @@ extern "C"
PLIST_API plist_t plist_new_date(int32_t sec, int32_t usec);
/**
+ * Create a new plist_t type #PLIST_UID
+ *
+ * @param val the unsigned integer value
+ * @return the created item
+ * @sa #plist_type
+ */
+ PLIST_API plist_t plist_new_uid(uint64_t val);
+
+ /**
* Destruct a plist_t node and all its children recursively
*
* @param plist the plist to free
@@ -416,6 +426,15 @@ extern "C"
*/
PLIST_API void plist_get_date_val(plist_t node, int32_t * sec, int32_t * usec);
+ /**
+ * Get the value of a #PLIST_UID node.
+ * This function does nothing if node is not of type #PLIST_UID
+ *
+ * @param node the node
+ * @param val a pointer to a uint64_t variable.
+ */
+ PLIST_API void plist_get_uid_val(plist_t node, uint64_t * val);
+
/********************************************
* *
@@ -496,6 +515,15 @@ extern "C"
*/
PLIST_API void plist_set_date_val(plist_t node, int32_t sec, int32_t usec);
+ /**
+ * Set the value of a node.
+ * Forces type of node to #PLIST_UID
+ *
+ * @param node the node
+ * @param val the unsigned integer value
+ */
+ PLIST_API void plist_set_uid_val(plist_t node, uint64_t val);
+
/********************************************
* *