diff options
| -rw-r--r-- | include/libiphone/mobilesync.h | 2 | ||||
| -rw-r--r-- | src/MobileSync.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/libiphone/mobilesync.h b/include/libiphone/mobilesync.h index 662036c..94fbedc 100644 --- a/include/libiphone/mobilesync.h +++ b/include/libiphone/mobilesync.h | |||
| @@ -43,7 +43,7 @@ typedef int16_t mobilesync_error_t; | |||
| 43 | struct mobilesync_client_int; | 43 | struct mobilesync_client_int; |
| 44 | typedef struct mobilesync_client_int *mobilesync_client_t; | 44 | typedef struct mobilesync_client_int *mobilesync_client_t; |
| 45 | 45 | ||
| 46 | mobilesync_error_t mobilesync_client_new(iphone_device_t device, int dst_port, mobilesync_client_t * client); | 46 | mobilesync_error_t mobilesync_client_new(iphone_device_t device, uint16_t port, mobilesync_client_t * client); |
| 47 | mobilesync_error_t mobilesync_client_free(mobilesync_client_t client); | 47 | mobilesync_error_t mobilesync_client_free(mobilesync_client_t client); |
| 48 | mobilesync_error_t mobilesync_recv(mobilesync_client_t client, plist_t *plist); | 48 | mobilesync_error_t mobilesync_recv(mobilesync_client_t client, plist_t *plist); |
| 49 | mobilesync_error_t mobilesync_send(mobilesync_client_t client, plist_t plist); | 49 | mobilesync_error_t mobilesync_send(mobilesync_client_t client, plist_t plist); |
diff --git a/src/MobileSync.c b/src/MobileSync.c index 97a1320..827ed35 100644 --- a/src/MobileSync.c +++ b/src/MobileSync.c | |||
| @@ -59,14 +59,14 @@ static mobilesync_error_t mobilesync_error(device_link_service_error_t err) | |||
| 59 | return MOBILESYNC_E_UNKNOWN_ERROR; | 59 | return MOBILESYNC_E_UNKNOWN_ERROR; |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | mobilesync_error_t mobilesync_client_new(iphone_device_t device, int dst_port, | 62 | mobilesync_error_t mobilesync_client_new(iphone_device_t device, uint16_t port, |
| 63 | mobilesync_client_t * client) | 63 | mobilesync_client_t * client) |
| 64 | { | 64 | { |
| 65 | if (!device || dst_port == 0 || !client || *client) | 65 | if (!device || port == 0 || !client || *client) |
| 66 | return MOBILESYNC_E_INVALID_ARG; | 66 | return MOBILESYNC_E_INVALID_ARG; |
| 67 | 67 | ||
| 68 | device_link_service_client_t dlclient = NULL; | 68 | device_link_service_client_t dlclient = NULL; |
| 69 | mobilesync_error_t ret = mobilesync_error(device_link_service_client_new(device, dst_port, &dlclient)); | 69 | mobilesync_error_t ret = mobilesync_error(device_link_service_client_new(device, port, &dlclient)); |
| 70 | if (ret != MOBILESYNC_E_SUCCESS) { | 70 | if (ret != MOBILESYNC_E_SUCCESS) { |
| 71 | return ret; | 71 | return ret; |
| 72 | } | 72 | } |
