From 082b69db5dba8d53d828a0741eb5bcef10849951 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 5 Feb 2024 11:47:06 +0100 Subject: Add a libplist_version() function to the interface --- src/plist.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/plist.c b/src/plist.c index e8f6974..2078520 100644 --- a/src/plist.c +++ b/src/plist.c @@ -1739,3 +1739,11 @@ void plist_print(plist_t plist) { plist_write_to_stream(plist, stdout, PLIST_FORMAT_PRINT, PLIST_OPT_PARTIAL_DATA); } + +const char* libplist_version() +{ +#ifndef PACKAGE_VERSION +#error PACKAGE_VERSION is not defined! +#endif + return PACKAGE_VERSION; +} -- cgit v1.1-32-gdbae