diff options
| author | 2008-08-11 22:32:01 +0200 | |
|---|---|---|
| committer | 2008-08-31 19:27:19 +0200 | |
| commit | e1b22c51edd2c3b416d111a63e1a84ab3ba7817e (patch) | |
| tree | 5c22a2f6ab33927ab61b9e43c9382e0a2ffd8734 /src/iphone.c | |
| parent | de4b279089d40131346cbd28e4f27b6e9716fab9 (diff) | |
| download | libimobiledevice-e1b22c51edd2c3b416d111a63e1a84ab3ba7817e.tar.gz libimobiledevice-e1b22c51edd2c3b416d111a63e1a84ab3ba7817e.tar.bz2 | |
first shot at setting up a library
Diffstat (limited to 'src/iphone.c')
| -rw-r--r-- | src/iphone.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iphone.c b/src/iphone.c index d8bb9ae..e0e150f 100644 --- a/src/iphone.c +++ b/src/iphone.c | |||
| @@ -34,7 +34,7 @@ extern int debug; | |||
| 34 | * @return A structure with data on the first iPhone it finds. (Or NULL, on | 34 | * @return A structure with data on the first iPhone it finds. (Or NULL, on |
| 35 | * error) | 35 | * error) |
| 36 | */ | 36 | */ |
| 37 | iPhone *get_iPhone() { | 37 | iPhone_t get_iPhone() { |
| 38 | iPhone *phone = (iPhone*)malloc(sizeof(iPhone)); | 38 | iPhone *phone = (iPhone*)malloc(sizeof(iPhone)); |
| 39 | struct usb_bus *bus, *busses; | 39 | struct usb_bus *bus, *busses; |
| 40 | struct usb_device *dev; | 40 | struct usb_device *dev; |
| @@ -129,7 +129,7 @@ iPhone *get_iPhone() { | |||
| 129 | * | 129 | * |
| 130 | * @param phone A pointer to an iPhone structure. | 130 | * @param phone A pointer to an iPhone structure. |
| 131 | */ | 131 | */ |
| 132 | void free_iPhone(iPhone *phone) { | 132 | void free_iPhone(iPhone_t phone) { |
| 133 | if (phone->buffer) free(phone->buffer); | 133 | if (phone->buffer) free(phone->buffer); |
| 134 | if (phone->device) { | 134 | if (phone->device) { |
| 135 | usb_release_interface(phone->device, 1); | 135 | usb_release_interface(phone->device, 1); |
