From bd31783d7fde0b5bd101f4a3f97ca1aca2aa6fab Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Mon, 13 Apr 2009 08:39:56 -0700 Subject: Expose iphone_get_specific_device() in API [#24 state:resolved] Signed-off-by: Matt Colyer --- include/libiphone/libiphone.h | 1 + src/iphone.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h index 7d9c223..53be73f 100644 --- a/include/libiphone/libiphone.h +++ b/include/libiphone/libiphone.h @@ -83,6 +83,7 @@ typedef struct iphone_np_client_int *iphone_np_client_t; //device related functions void iphone_set_debug(int level); iphone_error_t iphone_get_device ( iphone_device_t *device ); +iphone_error_t iphone_get_specific_device( unsigned int bus_n, int dev_n, iphone_device_t * device ); iphone_error_t iphone_free_device ( iphone_device_t device ); diff --git a/src/iphone.c b/src/iphone.c index c2a79bb..5076b48 100644 --- a/src/iphone.c +++ b/src/iphone.c @@ -95,7 +95,7 @@ static void iphone_config_usb_device(iphone_device_t phone) * descriptor on return. * @return IPHONE_E_SUCCESS if ok, otherwise an error code. */ -static iphone_error_t iphone_get_specific_device(unsigned int bus_n, int dev_n, iphone_device_t * device) +iphone_error_t iphone_get_specific_device(unsigned int bus_n, int dev_n, iphone_device_t * device) { struct usb_bus *bus, *busses; struct usb_device *dev; -- cgit v1.1-32-gdbae