summaryrefslogtreecommitdiffstats
path: root/src/libirecovery.c
diff options
context:
space:
mode:
authorGravatar Nicolas Haunold2010-05-13 12:18:17 +0200
committerGravatar Nicolas Haunold2010-05-13 12:18:17 +0200
commita2a3537ea24d3cdcc1b210b45695d6eed33ee433 (patch)
treefc34f08a62dec1776d23ecfad51b1fdd94fc1132 /src/libirecovery.c
parent89dcc7a5c123cc8ae8cba5af6682930803989a34 (diff)
downloadlibirecovery-a2a3537ea24d3cdcc1b210b45695d6eed33ee433.tar.gz
libirecovery-a2a3537ea24d3cdcc1b210b45695d6eed33ee433.tar.bz2
Added irecv_reset()
Diffstat (limited to 'src/libirecovery.c')
-rw-r--r--src/libirecovery.c10
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) {
return IRECV_ERROR_NO_DEVICE;
}
+int irecv_reset(irecv_device* device) {
+ if (device != NULL) {
+ if (device->handle != NULL) {
+ libusb_reset_device(device->handle);
+ }
+ }
+
+ return IRECV_SUCCESS;
+}
+
int irecv_close(irecv_device* device) {
if (device != NULL) {
if (device->handle != NULL) {