diff options
Diffstat (limited to 'src/libirecovery.c')
| -rw-r--r-- | src/libirecovery.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index dfc0aea..cdb0c53 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c | |||
| @@ -78,6 +78,16 @@ int irecv_open(irecv_device* device) { | |||
| 78 | return IRECV_ERROR_NO_DEVICE; | 78 | return IRECV_ERROR_NO_DEVICE; |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | int irecv_reset(irecv_device* device) { | ||
| 82 | if (device != NULL) { | ||
| 83 | if (device->handle != NULL) { | ||
| 84 | libusb_reset_device(device->handle); | ||
| 85 | } | ||
| 86 | } | ||
| 87 | |||
| 88 | return IRECV_SUCCESS; | ||
| 89 | } | ||
| 90 | |||
| 81 | int irecv_close(irecv_device* device) { | 91 | int irecv_close(irecv_device* device) { |
| 82 | if (device != NULL) { | 92 | if (device != NULL) { |
| 83 | if (device->handle != NULL) { | 93 | if (device->handle != NULL) { |
