diff options
| author | 2013-09-26 23:54:06 +0200 | |
|---|---|---|
| committer | 2013-09-26 23:54:06 +0200 | |
| commit | 9a28cfe084b9cf04c0170dce8821356638d50b38 (patch) | |
| tree | 1b581021f494f654f2faff423248d0144c7e3e0c /include | |
| parent | 4afbb1aec79b3f80c55b3156475bdf546461464d (diff) | |
| download | libirecovery-9a28cfe084b9cf04c0170dce8821356638d50b38.tar.gz libirecovery-9a28cfe084b9cf04c0170dce8821356638d50b38.tar.bz2 | |
Rename device struct fields and provide device database getters for them
Diffstat (limited to 'include')
| -rw-r--r-- | include/libirecovery.h | 6 |
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 { | |||
| 68 | } irecv_event_t; | 68 | } irecv_event_t; |
| 69 | 69 | ||
| 70 | struct irecv_device { | 70 | struct irecv_device { |
| 71 | const char* product; | 71 | const char* product_type; |
| 72 | const char* model; | 72 | const char* hardware_model; |
| 73 | unsigned int board_id; | 73 | unsigned int board_id; |
| 74 | unsigned int chip_id; | 74 | unsigned int chip_id; |
| 75 | }; | 75 | }; |
| @@ -132,6 +132,8 @@ irecv_error_t irecv_get_imei(irecv_client_t client, char* imei); | |||
| 132 | 132 | ||
| 133 | /* device database queries */ | 133 | /* device database queries */ |
| 134 | irecv_error_t irecv_devices_get_device_by_client(irecv_client_t client, irecv_device_t* device); | 134 | irecv_error_t irecv_devices_get_device_by_client(irecv_client_t client, irecv_device_t* device); |
| 135 | irecv_error_t irecv_devices_get_device_by_product_type(const char* product_type, irecv_device_t* device); | ||
| 136 | irecv_error_t irecv_devices_get_device_by_hardware_model(const char* hardware_model, irecv_device_t* device); | ||
| 135 | 137 | ||
| 136 | #ifdef __cplusplus | 138 | #ifdef __cplusplus |
| 137 | } | 139 | } |
