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