summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-03-07 19:29:37 +0100
committerGravatar Nikias Bassen2024-03-07 19:29:37 +0100
commit90cbfee714ff7ade4d004a05aa31b96bddfcd71f (patch)
tree309fe7f186a8486fb0a0041f187bfcfeb198b9af /src
parent447ae096e4debbcfe63a875154074159cbd551e0 (diff)
downloadlibirecovery-90cbfee714ff7ade4d004a05aa31b96bddfcd71f.tar.gz
libirecovery-90cbfee714ff7ade4d004a05aa31b96bddfcd71f.tar.bz2
Add irecv_version() function to interface
Diffstat (limited to 'src')
-rw-r--r--src/libirecovery.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index 151cbae..e0b6f84 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -3053,6 +3053,15 @@ void irecv_set_debug_level(int level)
#endif
}
+const char* irecv_version()
+{
+#ifndef PACKAGE_VERSION
+#error PACKAGE_VERSION is not defined!
+#endif
+ return PACKAGE_VERSION;
+}
+
+
#ifndef USE_DUMMY
static irecv_error_t irecv_send_command_raw(irecv_client_t client, const char* command, uint8_t b_request)
{