summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plist.c')
-rw-r--r--src/plist.c8
1 files changed, 8 insertions, 0 deletions
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;
+}