mirror of
https://github.com/libimobiledevice/libusbmuxd.git
synced 2026-04-17 19:27:30 +00:00
Add libusbmuxd_version() function to interface
This commit is contained in:
@@ -334,6 +334,13 @@ USBMUXD_API void libusbmuxd_set_use_inotify(int set);
|
||||
|
||||
USBMUXD_API void libusbmuxd_set_debug_level(int level);
|
||||
|
||||
/**
|
||||
* Returns a static string of the libusbmuxd version.
|
||||
*
|
||||
* @return The libusbmuxd version as static ascii string
|
||||
*/
|
||||
USBMUXD_API const char* libusbmuxd_version();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user