summaryrefslogtreecommitdiffstats
path: root/include/libirecovery.h
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-09-26 23:54:06 +0200
committerGravatar Martin Szulecki2013-09-26 23:54:06 +0200
commit9a28cfe084b9cf04c0170dce8821356638d50b38 (patch)
tree1b581021f494f654f2faff423248d0144c7e3e0c /include/libirecovery.h
parent4afbb1aec79b3f80c55b3156475bdf546461464d (diff)
downloadlibirecovery-9a28cfe084b9cf04c0170dce8821356638d50b38.tar.gz
libirecovery-9a28cfe084b9cf04c0170dce8821356638d50b38.tar.bz2
Rename device struct fields and provide device database getters for them
Diffstat (limited to 'include/libirecovery.h')
-rw-r--r--include/libirecovery.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libirecovery.h b/include/libirecovery.h
index a405005..152634f 100644
--- a/include/libirecovery.h
+++ b/include/libirecovery.h
@@ -68,8 +68,8 @@ typedef struct {
} irecv_event_t;
struct irecv_device {
- const char* product;
- const char* model;
+ const char* product_type;
+ const char* hardware_model;
unsigned int board_id;
unsigned int chip_id;
};
@@ -132,6 +132,8 @@ irecv_error_t irecv_get_imei(irecv_client_t client, char* imei);
/* device database queries */
irecv_error_t irecv_devices_get_device_by_client(irecv_client_t client, irecv_device_t* device);
+irecv_error_t irecv_devices_get_device_by_product_type(const char* product_type, irecv_device_t* device);
+irecv_error_t irecv_devices_get_device_by_hardware_model(const char* hardware_model, irecv_device_t* device);
#ifdef __cplusplus
}