summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/libimobiledevice-glue/glue.h2
-rw-r--r--src/glue.c8
2 files changed, 10 insertions, 0 deletions
diff --git a/include/libimobiledevice-glue/glue.h b/include/libimobiledevice-glue/glue.h
index 1ffca02..e1e9900 100644
--- a/include/libimobiledevice-glue/glue.h
+++ b/include/libimobiledevice-glue/glue.h
@@ -32,4 +32,6 @@
#endif
#endif
+LIMD_GLUE_API const char* libimobiledevice_glue_version();
+
#endif
diff --git a/src/glue.c b/src/glue.c
index 7970679..1499a0d 100644
--- a/src/glue.c
+++ b/src/glue.c
@@ -78,3 +78,11 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
#else
#warning No compiler support for constructor/destructor attributes, some features might not be available.
#endif
+
+const char* libimobiledevice_glue_version()
+{
+#ifndef PACKAGE_VERSION
+#error PACKAGE_VERSION is not defined!
+#endif
+ return PACKAGE_VERSION;
+}