From 810e1a5936867a9f2c9f07df3a33a9d02fc03466 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 19 Dec 2021 16:13:07 +0100 Subject: Add support for PLIST_NULL type --- src/plist.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/plist.c') 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) return plist_new_node(data); } +PLIST_API plist_t plist_new_null(void) +{ + plist_data_t data = plist_new_plist_data(); + data->type = PLIST_NULL; + data->intval = 0; + data->length = 0; + return plist_new_node(data); +} + PLIST_API void plist_free(plist_t plist) { if (plist) -- cgit v1.1-32-gdbae