summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.h
diff options
context:
space:
mode:
authorGravatar hydazz2026-11-26 23:55:58 +1100
committerGravatar hydazz2026-11-27 11:35:37 +1100
commit5adea9ba8c08dd406d9fc833612859ecedfaf5ec (patch)
tree630bb51c992afac88e983547447becc5388d6365 /src/idevicerestore.h
parent1c15165f9688a344c6f68af2a8c5874d2ed307b7 (diff)
downloadidevicerestore-5adea9ba8c08dd406d9fc833612859ecedfaf5ec.tar.gz
idevicerestore-5adea9ba8c08dd406d9fc833612859ecedfaf5ec.tar.bz2
restore: Expose the final status received from restored
Diffstat (limited to 'src/idevicerestore.h')
-rw-r--r--src/idevicerestore.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/idevicerestore.h b/src/idevicerestore.h
index 2b98191..b79ad36 100644
--- a/src/idevicerestore.h
+++ b/src/idevicerestore.h
@@ -90,6 +90,11 @@ void idevicerestore_set_progress_callback(struct idevicerestore_client_t* client
void idevicerestore_set_post_restore_action(struct idevicerestore_client_t* client, const char* action);
int idevicerestore_start(struct idevicerestore_client_t* client);
+/* Returns 0 and sets *status to the last raw unsigned Status value the restore
+ * OS sent during the current restore attempt. A finished restore reports 0
+ * and a verification error reports 0xFFFFFFFFFFFFFFFF. Returns -1 if no
+ * integer Status was received or either argument is NULL. */
+int idevicerestore_get_final_status(struct idevicerestore_client_t* client, uint64_t* status);
const char* idevicerestore_get_error(void);
irecv_device_t get_irecv_device(struct idevicerestore_client_t* client);