diff options
| author | 2009-04-13 08:39:56 -0700 | |
|---|---|---|
| committer | 2009-04-13 08:39:56 -0700 | |
| commit | bd31783d7fde0b5bd101f4a3f97ca1aca2aa6fab (patch) | |
| tree | 84492c3cb496a6fa694bf6fc43732466ce5f4214 | |
| parent | 319e8a3df1ade94f92bf01b006c64f2e73d5cfe5 (diff) | |
| download | libimobiledevice-bd31783d7fde0b5bd101f4a3f97ca1aca2aa6fab.tar.gz libimobiledevice-bd31783d7fde0b5bd101f4a3f97ca1aca2aa6fab.tar.bz2 | |
Expose iphone_get_specific_device() in API [#24 state:resolved]
Signed-off-by: Matt Colyer <matt@colyer.name>
| -rw-r--r-- | include/libiphone/libiphone.h | 1 | ||||
| -rw-r--r-- | src/iphone.c | 2 |
2 files changed, 2 insertions, 1 deletions
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; | |||
| 83 | //device related functions | 83 | //device related functions |
| 84 | void iphone_set_debug(int level); | 84 | void iphone_set_debug(int level); |
| 85 | iphone_error_t iphone_get_device ( iphone_device_t *device ); | 85 | iphone_error_t iphone_get_device ( iphone_device_t *device ); |
| 86 | iphone_error_t iphone_get_specific_device( unsigned int bus_n, int dev_n, iphone_device_t * device ); | ||
| 86 | iphone_error_t iphone_free_device ( iphone_device_t device ); | 87 | iphone_error_t iphone_free_device ( iphone_device_t device ); |
| 87 | 88 | ||
| 88 | 89 | ||
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) | |||
| 95 | * descriptor on return. | 95 | * descriptor on return. |
| 96 | * @return IPHONE_E_SUCCESS if ok, otherwise an error code. | 96 | * @return IPHONE_E_SUCCESS if ok, otherwise an error code. |
| 97 | */ | 97 | */ |
| 98 | static iphone_error_t iphone_get_specific_device(unsigned int bus_n, int dev_n, iphone_device_t * device) | 98 | iphone_error_t iphone_get_specific_device(unsigned int bus_n, int dev_n, iphone_device_t * device) |
| 99 | { | 99 | { |
| 100 | struct usb_bus *bus, *busses; | 100 | struct usb_bus *bus, *busses; |
| 101 | struct usb_device *dev; | 101 | struct usb_device *dev; |
