diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/installation_proxy.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/installation_proxy.c b/src/installation_proxy.c index 9a11e36..e279edf 100644 --- a/src/installation_proxy.c +++ b/src/installation_proxy.c | |||
| @@ -59,7 +59,7 @@ static void instproxy_unlock(instproxy_client_t client) | |||
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | /** | 61 | /** |
| 62 | * Convert a property_list_service_error_t value to an instproxy_error_t value. | 62 | * Converts a property_list_service_error_t value to an instproxy_error_t value. |
| 63 | * Used internally to get correct error codes. | 63 | * Used internally to get correct error codes. |
| 64 | * | 64 | * |
| 65 | * @param err A property_list_service_error_t error code | 65 | * @param err A property_list_service_error_t error code |
| @@ -130,7 +130,7 @@ LIBIMOBILEDEVICE_API instproxy_error_t instproxy_client_free(instproxy_client_t | |||
| 130 | } | 130 | } |
| 131 | 131 | ||
| 132 | /** | 132 | /** |
| 133 | * Send a command with specified options to the device. | 133 | * Sends a command to the device. |
| 134 | * Only used internally. | 134 | * Only used internally. |
| 135 | * | 135 | * |
| 136 | * @param client The connected installation_proxy client. | 136 | * @param client The connected installation_proxy client. |
| @@ -383,7 +383,6 @@ static instproxy_error_t instproxy_create_status_updater(instproxy_client_t clie | |||
| 383 | return res; | 383 | return res; |
| 384 | } | 384 | } |
| 385 | 385 | ||
| 386 | |||
| 387 | /** | 386 | /** |
| 388 | * Internal function used by instproxy_install and instproxy_upgrade. | 387 | * Internal function used by instproxy_install and instproxy_upgrade. |
| 389 | * | 388 | * |
| @@ -528,6 +527,7 @@ LIBIMOBILEDEVICE_API instproxy_error_t instproxy_remove_archive(instproxy_client | |||
| 528 | return INSTPROXY_E_OP_IN_PROGRESS; | 527 | return INSTPROXY_E_OP_IN_PROGRESS; |
| 529 | } | 528 | } |
| 530 | 529 | ||
| 530 | /* send command */ | ||
| 531 | instproxy_lock(client); | 531 | instproxy_lock(client); |
| 532 | instproxy_error_t res = instproxy_send_command(client, "RemoveArchive", client_options, appid, NULL); | 532 | instproxy_error_t res = instproxy_send_command(client, "RemoveArchive", client_options, appid, NULL); |
| 533 | instproxy_unlock(client); | 533 | instproxy_unlock(client); |
| @@ -548,6 +548,7 @@ LIBIMOBILEDEVICE_API void instproxy_client_options_add(plist_t client_options, . | |||
| 548 | { | 548 | { |
| 549 | if (!client_options) | 549 | if (!client_options) |
| 550 | return; | 550 | return; |
| 551 | |||
| 551 | va_list args; | 552 | va_list args; |
| 552 | va_start(args, client_options); | 553 | va_start(args, client_options); |
| 553 | char *arg = va_arg(args, char*); | 554 | char *arg = va_arg(args, char*); |
| @@ -607,6 +608,7 @@ LIBIMOBILEDEVICE_API instproxy_error_t instproxy_client_get_path_for_bundle_iden | |||
| 607 | // query device for list of apps | 608 | // query device for list of apps |
| 608 | instproxy_error_t ierr = instproxy_browse(client, client_opts, &apps); | 609 | instproxy_error_t ierr = instproxy_browse(client, client_opts, &apps); |
| 609 | instproxy_client_options_free(client_opts); | 610 | instproxy_client_options_free(client_opts); |
| 611 | |||
| 610 | if (ierr != INSTPROXY_E_SUCCESS) { | 612 | if (ierr != INSTPROXY_E_SUCCESS) { |
| 611 | return ierr; | 613 | return ierr; |
| 612 | } | 614 | } |
