summaryrefslogtreecommitdiffstats
path: root/include/libirecovery.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-11-19 20:01:55 +0100
committerGravatar Nikias Bassen2013-11-19 20:01:55 +0100
commit054a79d64e55ce7d9874e65814c5a17caa1ca1f0 (patch)
treec65e45aa558c79533d29eb193362e8263ce8fc41 /include/libirecovery.h
parentf6ee4a8efc3bfad2c2d451e3ad86edaca765ff9f (diff)
downloadlibirecovery-054a79d64e55ce7d9874e65814c5a17caa1ca1f0.tar.gz
libirecovery-054a79d64e55ce7d9874e65814c5a17caa1ca1f0.tar.bz2
remove irecv_get_* functions and provide general irecv_get_device_info()
Diffstat (limited to 'include/libirecovery.h')
-rw-r--r--include/libirecovery.h23
1 files changed, 17 insertions, 6 deletions
diff --git a/include/libirecovery.h b/include/libirecovery.h
index d34e0f2..b575fed 100644
--- a/include/libirecovery.h
+++ b/include/libirecovery.h
@@ -75,6 +75,22 @@ struct irecv_device {
};
typedef struct irecv_device* irecv_device_t;
+struct irecv_device_info {
+ unsigned int cpid;
+ unsigned int cprv;
+ unsigned int cpfm;
+ unsigned int scep;
+ unsigned int bdid;
+ unsigned long long ecid;
+ unsigned int ibfl;
+ char* srnm;
+ char* imei;
+ unsigned char* ap_nonce;
+ unsigned int ap_nonce_size;
+ unsigned char* sep_nonce;
+ unsigned int sep_nonce_size;
+};
+
typedef struct irecv_client_private irecv_client_private;
typedef irecv_client_private* irecv_client_t;
@@ -124,12 +140,7 @@ irecv_error_t irecv_getret(irecv_client_t client, unsigned int* value);
/* device information */
irecv_error_t irecv_get_mode(irecv_client_t client, int* mode);
-irecv_error_t irecv_get_cpid(irecv_client_t client, unsigned int* cpid);
-irecv_error_t irecv_get_bdid(irecv_client_t client, unsigned int* bdid);
-irecv_error_t irecv_get_ecid(irecv_client_t client, unsigned long long* ecid);
-irecv_error_t irecv_get_nonce_with_tag(irecv_client_t client, const char* tag, unsigned char** nonce, int* nonce_size);
-irecv_error_t irecv_get_srnm(irecv_client_t client, char* srnm);
-irecv_error_t irecv_get_imei(irecv_client_t client, char* imei);
+const struct irecv_device_info* irecv_get_device_info(irecv_client_t client);
/* device database queries */
irecv_device_t irecv_devices_get_all();