summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar hydazz2026-11-26 23:44:34 +1100
committerGravatar hydazz2026-11-26 23:44:34 +1100
commit1c15165f9688a344c6f68af2a8c5874d2ed307b7 (patch)
tree4c46ee1b9d68897810b937991ea9f56fa0183314 /src/idevicerestore.c
parent037467283fb3b3cd72a664caa9a935a641365616 (diff)
downloadidevicerestore-1c15165f9688a344c6f68af2a8c5874d2ed307b7.tar.gz
idevicerestore-1c15165f9688a344c6f68af2a8c5874d2ed307b7.tar.bz2
restore: Allow the caller to select the post-restore action
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 61fa1be..23db769 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -1657,6 +1657,7 @@ void idevicerestore_client_free(struct idevicerestore_client_t* client)
if (client->restore_boot_args) {
free(client->restore_boot_args);
}
+ free(client->post_restore_action);
if (client->cache_dir) {
free(client->cache_dir);
}
@@ -1716,6 +1717,14 @@ void idevicerestore_set_ipsw(struct idevicerestore_client_t* client, const char*
}
}
+void idevicerestore_set_post_restore_action(struct idevicerestore_client_t* client, const char* action)
+{
+ if (!client)
+ return;
+ free(client->post_restore_action);
+ client->post_restore_action = action ? strdup(action) : NULL;
+}
+
void idevicerestore_set_cache_path(struct idevicerestore_client_t* client, const char* path)
{
if (!client)