From b65a7ce7ebca6730fce5dcbfd820d8ef4124e18f Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 7 Nov 2012 22:08:53 +0100 Subject: libidevicerecovery: implemented progress callback logic --- src/common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index 1c3e2fa..dae1eea 100644 --- a/src/common.h +++ b/src/common.h @@ -29,6 +29,8 @@ extern "C" { #include #include +#include "idevicerestore.h" + #define info(...) printf(__VA_ARGS__) #define error(...) fprintf(stderr, __VA_ARGS__) #define debug(...) if(idevicerestore_debug) fprintf(stderr, __VA_ARGS__) @@ -85,6 +87,8 @@ struct idevicerestore_client_t { char* build; char* restore_boot_args; char* cache_dir; + idevicerestore_progress_cb_t progress_cb; + void* progress_cb_data; }; static struct idevicerestore_mode_t idevicerestore_modes[] = { @@ -119,6 +123,8 @@ char *generate_guid(); int mkdir_with_parents(const char *dir, int mode); +void idevicerestore_progress(struct idevicerestore_client_t* client, int step, double progress); + #ifdef __cplusplus } #endif -- cgit v1.1-32-gdbae