diff options
| author | 2014-03-20 23:00:20 +0100 | |
|---|---|---|
| committer | 2014-03-20 23:00:20 +0100 | |
| commit | 88ce6113593158944630435678e689bf155d9a03 (patch) | |
| tree | 0757287665b7e9c7263d77fd269b0777e8228d25 /src/installation_proxy.c | |
| parent | a34a537d1408f8692daeadd5e1f5859ff13a3473 (diff) | |
| download | libimobiledevice-88ce6113593158944630435678e689bf155d9a03.tar.gz libimobiledevice-88ce6113593158944630435678e689bf155d9a03.tar.bz2 | |
Bump dependency to libplist 1.11 and remove use of "plist_dict_insert_item()"
Diffstat (limited to 'src/installation_proxy.c')
| -rw-r--r-- | src/installation_proxy.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/installation_proxy.c b/src/installation_proxy.c index f758a14..109df10 100644 --- a/src/installation_proxy.c +++ b/src/installation_proxy.c | |||
| @@ -180,14 +180,14 @@ static instproxy_error_t instproxy_send_command(instproxy_client_t client, const | |||
| 180 | 180 | ||
| 181 | plist_t dict = plist_new_dict(); | 181 | plist_t dict = plist_new_dict(); |
| 182 | if (appid) { | 182 | if (appid) { |
| 183 | plist_dict_insert_item(dict, "ApplicationIdentifier", plist_new_string(appid)); | 183 | plist_dict_set_item(dict, "ApplicationIdentifier", plist_new_string(appid)); |
| 184 | } | 184 | } |
| 185 | if (client_options && (plist_dict_get_size(client_options) > 0)) { | 185 | if (client_options && (plist_dict_get_size(client_options) > 0)) { |
| 186 | plist_dict_insert_item(dict, "ClientOptions", plist_copy(client_options)); | 186 | plist_dict_set_item(dict, "ClientOptions", plist_copy(client_options)); |
| 187 | } | 187 | } |
| 188 | plist_dict_insert_item(dict, "Command", plist_new_string(command)); | 188 | plist_dict_set_item(dict, "Command", plist_new_string(command)); |
| 189 | if (package_path) { | 189 | if (package_path) { |
| 190 | plist_dict_insert_item(dict, "PackagePath", plist_new_string(package_path)); | 190 | plist_dict_set_item(dict, "PackagePath", plist_new_string(package_path)); |
| 191 | } | 191 | } |
| 192 | 192 | ||
| 193 | instproxy_error_t err = instproxy_error(property_list_service_send_xml_plist(client->parent, dict)); | 193 | instproxy_error_t err = instproxy_error(property_list_service_send_xml_plist(client->parent, dict)); |
| @@ -761,21 +761,21 @@ void instproxy_client_options_add(plist_t client_options, ...) | |||
| 761 | char *key = strdup(arg); | 761 | char *key = strdup(arg); |
| 762 | if (!strcmp(key, "SkipUninstall")) { | 762 | if (!strcmp(key, "SkipUninstall")) { |
| 763 | int intval = va_arg(args, int); | 763 | int intval = va_arg(args, int); |
| 764 | plist_dict_insert_item(client_options, key, plist_new_bool(intval)); | 764 | plist_dict_set_item(client_options, key, plist_new_bool(intval)); |
| 765 | } else if (!strcmp(key, "ApplicationSINF") || !strcmp(key, "iTunesMetadata") || !strcmp(key, "ReturnAttributes")) { | 765 | } else if (!strcmp(key, "ApplicationSINF") || !strcmp(key, "iTunesMetadata") || !strcmp(key, "ReturnAttributes")) { |
| 766 | plist_t plistval = va_arg(args, plist_t); | 766 | plist_t plistval = va_arg(args, plist_t); |
| 767 | if (!plistval) { | 767 | if (!plistval) { |
| 768 | free(key); | 768 | free(key); |
| 769 | break; | 769 | break; |
| 770 | } | 770 | } |
| 771 | plist_dict_insert_item(client_options, key, plist_copy(plistval)); | 771 | plist_dict_set_item(client_options, key, plist_copy(plistval)); |
| 772 | } else { | 772 | } else { |
| 773 | char *strval = va_arg(args, char*); | 773 | char *strval = va_arg(args, char*); |
| 774 | if (!strval) { | 774 | if (!strval) { |
| 775 | free(key); | 775 | free(key); |
| 776 | break; | 776 | break; |
| 777 | } | 777 | } |
| 778 | plist_dict_insert_item(client_options, key, plist_new_string(strval)); | 778 | plist_dict_set_item(client_options, key, plist_new_string(strval)); |
| 779 | } | 779 | } |
| 780 | free(key); | 780 | free(key); |
| 781 | arg = va_arg(args, char*); | 781 | arg = va_arg(args, char*); |
