summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-03-26 21:21:55 +0100
committerGravatar Nikias Bassen2024-03-26 21:47:03 +0100
commita435ebf661dfe76347e034f0e2e69a5168492384 (patch)
tree823b4774cbeb81f14302b58659dce7ebcb671631 /src
parent07cd6f774fd444f981ade6e75e10962ba0439350 (diff)
downloadlibusbmuxd-a435ebf661dfe76347e034f0e2e69a5168492384.tar.gz
libusbmuxd-a435ebf661dfe76347e034f0e2e69a5168492384.tar.bz2
Add libusbmuxd_version() function to interface
Diffstat (limited to 'src')
-rw-r--r--src/libusbmuxd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c
index 4c2e7d8..39b3e5e 100644
--- a/src/libusbmuxd.c
+++ b/src/libusbmuxd.c
@@ -1803,3 +1803,11 @@ void libusbmuxd_set_debug_level(int level)
libusbmuxd_debug = level;
socket_set_verbose(level);
}
+
+const char* libusbmuxd_version()
+{
+#ifndef PACKAGE_VERSION
+#error PACKAGE_VERSION is not defined
+#endif
+ return PACKAGE_VERSION;
+}