summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.h
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-06-05 05:11:41 -0400
committerGravatar Joshua Hill2010-06-05 05:11:41 -0400
commit5fe87e252c9c28a67277e21febb19027feb32372 (patch)
tree9d2255602c12eb577125ae66471c31270e57fd9e /src/idevicerestore.h
parent0966c00988477450691c8c9bce47a3fb30eff6da (diff)
downloadidevicerestore-5fe87e252c9c28a67277e21febb19027feb32372.tar.gz
idevicerestore-5fe87e252c9c28a67277e21febb19027feb32372.tar.bz2
Added long options and moved the function main source file function declarations into the header file for easier maintainance
Diffstat (limited to 'src/idevicerestore.h')
-rw-r--r--src/idevicerestore.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/idevicerestore.h b/src/idevicerestore.h
index 40d5543..adea68e 100644
--- a/src/idevicerestore.h
+++ b/src/idevicerestore.h
@@ -22,6 +22,9 @@
#ifndef IDEVICERESTORE_H
#define IDEVICERESTORE_H
+#include <stdint.h>
+#include <plist/plist.h>
+
#define info(...) printf(__VA_ARGS__)
#define error(...) fprintf(stderr, __VA_ARGS__)
#define debug(...) if(idevicerestore_debug >= 1) fprintf(stderr, __VA_ARGS__)
@@ -76,8 +79,23 @@ extern int idevicerestore_quit;
extern int idevicerestore_debug;
extern int idevicerestore_erase;
extern int idevicerestore_custom;
+extern int idevicerestore_exclude;
extern int idevicerestore_verbose;
extern idevicerestore_mode_t idevicerestore_mode;
extern idevicerestore_device_t idevicerestore_device;
+int check_mode(const char* uuid);
+int check_device(const char* uuid);
+void usage(int argc, char* argv[]);
+int get_ecid(const char* uuid, uint64_t* ecid);
+int get_bdid(const char* uuid, uint32_t* bdid);
+int get_cpid(const char* uuid, uint32_t* cpid);
+int extract_buildmanifest(const char* ipsw, plist_t* buildmanifest);
+plist_t get_build_identity(plist_t buildmanifest, uint32_t identity);
+int write_file(const char* filename, const void* data, size_t size);
+int get_shsh_blobs(uint64_t ecid, plist_t build_identity, plist_t* tss);
+int extract_filesystem(const char* ipsw, plist_t buildmanifest, char** filesystem);
+int get_signed_component(char* ipsw, plist_t tss, const char* path, char** data, uint32_t* size);
+
+
#endif