diff options
Diffstat (limited to 'src/plist.c')
| -rw-r--r-- | src/plist.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plist.c b/src/plist.c index 386b04e..5453176 100644 --- a/src/plist.c +++ b/src/plist.c | |||
| @@ -374,6 +374,15 @@ PLIST_API plist_t plist_new_date(int32_t sec, int32_t usec) | |||
| 374 | return plist_new_node(data); | 374 | return plist_new_node(data); |
| 375 | } | 375 | } |
| 376 | 376 | ||
| 377 | PLIST_API plist_t plist_new_null(void) | ||
| 378 | { | ||
| 379 | plist_data_t data = plist_new_plist_data(); | ||
| 380 | data->type = PLIST_NULL; | ||
| 381 | data->intval = 0; | ||
| 382 | data->length = 0; | ||
| 383 | return plist_new_node(data); | ||
| 384 | } | ||
| 385 | |||
| 377 | PLIST_API void plist_free(plist_t plist) | 386 | PLIST_API void plist_free(plist_t plist) |
| 378 | { | 387 | { |
| 379 | if (plist) | 388 | if (plist) |
