From 623b7415b018faa5bd87e786faff05b999b8b81b Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 16 Feb 2024 14:02:37 +0100 Subject: Add version function to interface --- src/glue.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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; +} -- cgit v1.1-32-gdbae