diff options
| author | 2009-01-29 20:49:00 +0100 | |
|---|---|---|
| committer | 2009-01-29 20:49:00 +0100 | |
| commit | f1d587b73eb3d8a7379e7c44f03257e6e553ca1b (patch) | |
| tree | d5fd5843816d6e23275f53eb0e213a565995088f /include | |
| parent | 296a38509d12306e423800ed2c583a94a31eddff (diff) | |
| download | libplist-f1d587b73eb3d8a7379e7c44f03257e6e553ca1b.tar.gz libplist-f1d587b73eb3d8a7379e7c44f03257e6e553ca1b.tar.bz2 | |
Add setter and getter for Date and Unicode types.
Diffstat (limited to 'include')
| -rw-r--r-- | include/plist/plist.h | 6 |
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); | |||
| 60 | void plist_add_sub_uint_el(plist_t node, uint64_t val); | 60 | void plist_add_sub_uint_el(plist_t node, uint64_t val); |
| 61 | void plist_add_sub_real_el(plist_t node, double val); | 61 | void plist_add_sub_real_el(plist_t node, double val); |
| 62 | void plist_add_sub_data_el(plist_t node, const char* val, uint64_t length); | 62 | void plist_add_sub_data_el(plist_t node, const char* val, uint64_t length); |
| 63 | 63 | void plist_add_sub_unicode_el(plist_t node, const char* val); | |
| 64 | void plist_add_sub_date_el(plist_t node, int32_t sec, int32_t usec); | ||
| 64 | 65 | ||
| 65 | //plist free | 66 | //plist free |
| 66 | void plist_free(plist_t plist); | 67 | void plist_free(plist_t plist); |
| @@ -83,6 +84,9 @@ void plist_get_bool_val(plist_t node, uint8_t* val); | |||
| 83 | void plist_get_uint_val(plist_t node, uint64_t* val); | 84 | void plist_get_uint_val(plist_t node, uint64_t* val); |
| 84 | void plist_get_real_val(plist_t node, double* val); | 85 | void plist_get_real_val(plist_t node, double* val); |
| 85 | void plist_get_data_val(plist_t node, char** val, uint64_t* length); | 86 | void plist_get_data_val(plist_t node, char** val, uint64_t* length); |
| 87 | void plist_get_unicode_val(plist_t node, char** val); | ||
| 88 | void plist_get_date_val(plist_t node, int32_t* sec, int32_t* usec); | ||
| 89 | |||
| 86 | 90 | ||
| 87 | //import and export functions | 91 | //import and export functions |
| 88 | void plist_to_xml(plist_t plist, char **plist_xml, uint32_t * length); | 92 | void plist_to_xml(plist_t plist, char **plist_xml, uint32_t * length); |
