summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
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)