summaryrefslogtreecommitdiffstats
path: root/src/normal.h
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-07-08 23:40:26 -0400
committerGravatar Joshua Hill2010-07-08 23:40:26 -0400
commit4bc0f4d97a767d1291ac9f09780198d5680f3e3f (patch)
tree62b132e669be7319d749635a9b6d8fb842401810 /src/normal.h
parent38c965c16625d26915b3d4998a8a7e790c834d89 (diff)
parent4090b98d9e8cdaada701ac320e20f7c8b0cf88f6 (diff)
downloadidevicerestore-4bc0f4d97a767d1291ac9f09780198d5680f3e3f.tar.gz
idevicerestore-4bc0f4d97a767d1291ac9f09780198d5680f3e3f.tar.bz2
Merge branch 'martin'
Diffstat (limited to 'src/normal.h')
-rw-r--r--src/normal.h32
1 files changed, 29 insertions, 3 deletions
diff --git a/src/normal.h b/src/normal.h
index 3e2868d..e86bf14 100644
--- a/src/normal.h
+++ b/src/normal.h
@@ -19,11 +19,37 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef NORMAL_H
-#define NORMAL_H
+#ifndef IDEVICERESTORE_NORMAL_H
+#define IDEVICERESTORE_NORMAL_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
#include <stdint.h>
+#include <libimobiledevice/lockdown.h>
+#include <libimobiledevice/libimobiledevice.h>
+
+struct normal_client_t {
+ idevice_t device;
+ lockdownd_client_t client;
+ const char* ipsw;
+ plist_t tss;
+};
-int normal_get_ecid(uint64_t* ecid);
+
+int normal_check_mode(const char* uuid);
+int normal_check_device(const char* uuid);
+int normal_client_new(struct idevicerestore_client_t* client);
+void normal_client_free(struct idevicerestore_client_t* client);
+int normal_open_with_timeout(struct idevicerestore_client_t* client);
+int normal_enter_recovery(struct idevicerestore_client_t* client);
+int normal_get_cpid(const char* uuid, uint32_t* cpid);
+int normal_get_bdid(const char* uuid, uint32_t* cpid);
+int normal_get_ecid(const char* uuid, uint64_t* ecid);
+
+#ifdef __cplusplus
+}
+#endif
#endif