Skip to content

Commit

Permalink
Add version function to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Feb 16, 2024
1 parent 9a2b733 commit 623b741
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/libimobiledevice-glue/glue.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@
#endif
#endif

LIMD_GLUE_API const char* libimobiledevice_glue_version();

#endif
8 changes: 8 additions & 0 deletions src/glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 623b741

Please sign in to comment.