diff options
| -rw-r--r-- | include/libirecovery.h | 6 | ||||
| -rw-r--r-- | src/libirecovery.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/libirecovery.h b/include/libirecovery.h index b575fed..7c5b160 100644 --- a/include/libirecovery.h +++ b/include/libirecovery.h | |||
| @@ -97,8 +97,8 @@ typedef irecv_client_private* irecv_client_t; | |||
| 97 | /* library */ | 97 | /* library */ |
| 98 | void irecv_set_debug_level(int level); | 98 | void irecv_set_debug_level(int level); |
| 99 | const char* irecv_strerror(irecv_error_t error); | 99 | const char* irecv_strerror(irecv_error_t error); |
| 100 | void irecv_init(); | 100 | void irecv_init(void); |
| 101 | void irecv_exit(); | 101 | void irecv_exit(void); |
| 102 | 102 | ||
| 103 | /* device connectivity */ | 103 | /* device connectivity */ |
| 104 | irecv_error_t irecv_open_with_ecid(irecv_client_t* client, unsigned long long ecid); | 104 | irecv_error_t irecv_open_with_ecid(irecv_client_t* client, unsigned long long ecid); |
| @@ -143,7 +143,7 @@ irecv_error_t irecv_get_mode(irecv_client_t client, int* mode); | |||
| 143 | const struct irecv_device_info* irecv_get_device_info(irecv_client_t client); | 143 | const struct irecv_device_info* irecv_get_device_info(irecv_client_t client); |
| 144 | 144 | ||
| 145 | /* device database queries */ | 145 | /* device database queries */ |
| 146 | irecv_device_t irecv_devices_get_all(); | 146 | irecv_device_t irecv_devices_get_all(void); |
| 147 | irecv_error_t irecv_devices_get_device_by_client(irecv_client_t client, irecv_device_t* device); | 147 | irecv_error_t irecv_devices_get_device_by_client(irecv_client_t client, irecv_device_t* device); |
| 148 | irecv_error_t irecv_devices_get_device_by_product_type(const char* product_type, irecv_device_t* device); | 148 | irecv_error_t irecv_devices_get_device_by_product_type(const char* product_type, irecv_device_t* device); |
| 149 | irecv_error_t irecv_devices_get_device_by_hardware_model(const char* hardware_model, irecv_device_t* device); | 149 | irecv_error_t irecv_devices_get_device_by_hardware_model(const char* hardware_model, irecv_device_t* device); |
diff --git a/src/libirecovery.c b/src/libirecovery.c index 47ca81f..e646ce9 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c | |||
| @@ -644,13 +644,13 @@ static int check_context(irecv_client_t client) { | |||
| 644 | return IRECV_E_SUCCESS; | 644 | return IRECV_E_SUCCESS; |
| 645 | } | 645 | } |
| 646 | 646 | ||
| 647 | IRECV_API void irecv_init() { | 647 | IRECV_API void irecv_init(void) { |
| 648 | #ifndef WIN32 | 648 | #ifndef WIN32 |
| 649 | libusb_init(&libirecovery_context); | 649 | libusb_init(&libirecovery_context); |
| 650 | #endif | 650 | #endif |
| 651 | } | 651 | } |
| 652 | 652 | ||
| 653 | IRECV_API void irecv_exit() { | 653 | IRECV_API void irecv_exit(void) { |
| 654 | #ifndef WIN32 | 654 | #ifndef WIN32 |
| 655 | if (libirecovery_context != NULL) { | 655 | if (libirecovery_context != NULL) { |
| 656 | libusb_exit(libirecovery_context); | 656 | libusb_exit(libirecovery_context); |
| @@ -660,7 +660,7 @@ IRECV_API void irecv_exit() { | |||
| 660 | } | 660 | } |
| 661 | 661 | ||
| 662 | #ifdef __APPLE__ | 662 | #ifdef __APPLE__ |
| 663 | void dummy_callback() { } | 663 | void dummy_callback(void) { } |
| 664 | #endif | 664 | #endif |
| 665 | 665 | ||
| 666 | IRECV_API int irecv_usb_control_transfer(irecv_client_t client, uint8_t bm_request_type, uint8_t b_request, uint16_t w_value, uint16_t w_index, unsigned char *data, uint16_t w_length, unsigned int timeout) { | 666 | IRECV_API int irecv_usb_control_transfer(irecv_client_t client, uint8_t bm_request_type, uint8_t b_request, uint16_t w_value, uint16_t w_index, unsigned char *data, uint16_t w_length, unsigned int timeout) { |
| @@ -1595,7 +1595,7 @@ IRECV_API irecv_error_t irecv_finish_transfer(irecv_client_t client) { | |||
| 1595 | return IRECV_E_SUCCESS; | 1595 | return IRECV_E_SUCCESS; |
| 1596 | } | 1596 | } |
| 1597 | 1597 | ||
| 1598 | IRECV_API irecv_device_t irecv_devices_get_all() { | 1598 | IRECV_API irecv_device_t irecv_devices_get_all(void) { |
| 1599 | return irecv_devices; | 1599 | return irecv_devices; |
| 1600 | } | 1600 | } |
| 1601 | 1601 | ||
