mirror of
https://github.com/libimobiledevice/libplist.git
synced 2026-05-17 20:30:34 +00:00
Add a libplist_version() function to the interface
This commit is contained in:
@@ -1215,6 +1215,13 @@ extern "C"
|
||||
*/
|
||||
PLIST_API void plist_set_debug(int debug);
|
||||
|
||||
/**
|
||||
* Returns a static string of the libplist version.
|
||||
*
|
||||
* @return The libplist version as static ascii string
|
||||
*/
|
||||
PLIST_API const char* libplist_version();
|
||||
|
||||
/*@}*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -1739,3 +1739,11 @@ void plist_print(plist_t plist)
|
||||
{
|
||||
plist_write_to_stream(plist, stdout, PLIST_FORMAT_PRINT, PLIST_OPT_PARTIAL_DATA);
|
||||
}
|
||||
|
||||
const char* libplist_version()
|
||||
{
|
||||
#ifndef PACKAGE_VERSION
|
||||
#error PACKAGE_VERSION is not defined!
|
||||
#endif
|
||||
return PACKAGE_VERSION;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user