summaryrefslogtreecommitdiffstats
path: root/include/plist
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-01-29 20:49:00 +0100
committerGravatar Jonathan Beck2009-01-29 20:49:00 +0100
commitf1d587b73eb3d8a7379e7c44f03257e6e553ca1b (patch)
treed5fd5843816d6e23275f53eb0e213a565995088f /include/plist
parent296a38509d12306e423800ed2c583a94a31eddff (diff)
downloadlibplist-f1d587b73eb3d8a7379e7c44f03257e6e553ca1b.tar.gz
libplist-f1d587b73eb3d8a7379e7c44f03257e6e553ca1b.tar.bz2
Add setter and getter for Date and Unicode types.
Diffstat (limited to 'include/plist')
-rw-r--r--include/plist/plist.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h
index c06d38b..76ce0ec 100644
--- a/include/plist/plist.h
+++ b/include/plist/plist.h
@@ -60,7 +60,8 @@ void plist_add_sub_bool_el(plist_t node, uint8_t val);
void plist_add_sub_uint_el(plist_t node, uint64_t val);
void plist_add_sub_real_el(plist_t node, double val);
void plist_add_sub_data_el(plist_t node, const char* val, uint64_t length);
-
+void plist_add_sub_unicode_el(plist_t node, const char* val);
+void plist_add_sub_date_el(plist_t node, int32_t sec, int32_t usec);
//plist free
void plist_free(plist_t plist);
@@ -83,6 +84,9 @@ void plist_get_bool_val(plist_t node, uint8_t* val);
void plist_get_uint_val(plist_t node, uint64_t* val);
void plist_get_real_val(plist_t node, double* val);
void plist_get_data_val(plist_t node, char** val, uint64_t* length);
+void plist_get_unicode_val(plist_t node, char** val);
+void plist_get_date_val(plist_t node, int32_t* sec, int32_t* usec);
+
//import and export functions
void plist_to_xml(plist_t plist, char **plist_xml, uint32_t * length);