diff options
author | Martin Szulecki | 2012-11-07 22:08:53 +0100 |
---|---|---|
committer | Martin Szulecki | 2012-11-07 22:08:53 +0100 |
commit | b65a7ce7ebca6730fce5dcbfd820d8ef4124e18f (patch) | |
tree | 3aaa3a68931bbaf3ec31bef6fad18c951cf7d32f /src/common.h | |
parent | b44ad07bec397f6cd1c597946efe86e5ed2a490b (diff) | |
download | idevicerestore-b65a7ce7ebca6730fce5dcbfd820d8ef4124e18f.tar.gz idevicerestore-b65a7ce7ebca6730fce5dcbfd820d8ef4124e18f.tar.bz2 |
libidevicerecovery: implemented progress callback logic
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <plist/plist.h> #include <libirecovery.h> +#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 |