summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-17 19:26:57 +0200
committerGravatar Nikias Bassen2012-07-17 19:26:57 +0200
commit0437413da2e6a61d955300c9bbc56f88d2461100 (patch)
tree6de20554c14aba7149281cae66e6a1d2111fe480 /src/common.h
parent58a4fd91026cc00182fc0aea2ab45c19f729b8d0 (diff)
downloadidevicerestore-0437413da2e6a61d955300c9bbc56f88d2461100.tar.gz
idevicerestore-0437413da2e6a61d955300c9bbc56f88d2461100.tar.bz2
main: add --cache-path parameter and use it for version.xml and wtf image
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index e0c4b6a..e52c902 100644
--- a/src/common.h
+++ b/src/common.h
@@ -91,6 +91,7 @@ struct idevicerestore_client_t {
char* version;
char* build;
char* restore_boot_args;
+ char* cache_dir;
};
static struct idevicerestore_mode_t idevicerestore_modes[] = {
@@ -123,6 +124,8 @@ char *generate_guid();
#define FMT_qu "%qu"
#endif
+int mkdir_with_parents(const char *dir, int mode);
+
extern struct idevicerestore_client_t* idevicerestore;
#ifdef __cplusplus