From 5adea9ba8c08dd406d9fc833612859ecedfaf5ec Mon Sep 17 00:00:00 2001 From: hydazz Date: Thu, 26 Nov 2026 23:55:58 +1100 Subject: restore: Expose the final status received from restored --- src/idevicerestore.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/idevicerestore.h') 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); -- cgit v1.1-32-gdbae