From a435ebf661dfe76347e034f0e2e69a5168492384 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 26 Mar 2024 21:21:55 +0100 Subject: Add libusbmuxd_version() function to interface --- src/libusbmuxd.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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; +} -- cgit v1.1-32-gdbae