summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-03-16 15:17:57 +0100
committerGravatar Nikias Bassen2024-03-16 15:17:57 +0100
commit7b1faa06a5650dbaeae3c55c4f5d0cc41bce383b (patch)
treedbd89becf8be629569db84481bc96c0ce8597cae /src
parent73b6fd183872096f20e6d1007429546a317a7cb1 (diff)
downloadlibimobiledevice-7b1faa06a5650dbaeae3c55c4f5d0cc41bce383b.tar.gz
libimobiledevice-7b1faa06a5650dbaeae3c55c4f5d0cc41bce383b.tar.bz2
Add libimobiledevice_version() function to interface
Diffstat (limited to 'src')
-rw-r--r--src/idevice.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/idevice.c b/src/idevice.c
index ed1cf3c..b9bbb1f 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -219,6 +219,14 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
#warning No compiler support for constructor/destructor attributes, some features might not be available.
#endif
+const char* libimobiledevice_version()
+{
+#ifndef PACKAGE_VERSION
+#error PACKAGE_VERSION is not defined!
+#endif
+ return PACKAGE_VERSION;
+}
+
struct idevice_subscription_context {
idevice_event_cb_t callback;
void *user_data;