From a2a3537ea24d3cdcc1b210b45695d6eed33ee433 Mon Sep 17 00:00:00 2001 From: Nicolas Haunold Date: Thu, 13 May 2010 12:18:17 +0200 Subject: Added irecv_reset() --- src/libirecovery.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/libirecovery.c') 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) { -- cgit v1.1-32-gdbae