diff options
author | Martin Szulecki | 2014-03-20 23:00:20 +0100 |
---|---|---|
committer | Martin Szulecki | 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 plist_t dict = plist_new_dict(); if (appid) { - plist_dict_insert_item(dict, "ApplicationIdentifier", plist_new_string(appid)); + plist_dict_set_item(dict, "ApplicationIdentifier", plist_new_string(appid)); } if (client_options && (plist_dict_get_size(client_options) > 0)) { - plist_dict_insert_item(dict, "ClientOptions", plist_copy(client_options)); + plist_dict_set_item(dict, "ClientOptions", plist_copy(client_options)); } - plist_dict_insert_item(dict, "Command", plist_new_string(command)); + plist_dict_set_item(dict, "Command", plist_new_string(command)); if (package_path) { - plist_dict_insert_item(dict, "PackagePath", plist_new_string(package_path)); + plist_dict_set_item(dict, "PackagePath", plist_new_string(package_path)); } 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, ...) char *key = strdup(arg); if (!strcmp(key, "SkipUninstall")) { int intval = va_arg(args, int); - plist_dict_insert_item(client_options, key, plist_new_bool(intval)); + plist_dict_set_item(client_options, key, plist_new_bool(intval)); } else if (!strcmp(key, "ApplicationSINF") || !strcmp(key, "iTunesMetadata") || !strcmp(key, "ReturnAttributes")) { plist_t plistval = va_arg(args, plist_t); if (!plistval) { free(key); break; } - plist_dict_insert_item(client_options, key, plist_copy(plistval)); + plist_dict_set_item(client_options, key, plist_copy(plistval)); } else { char *strval = va_arg(args, char*); if (!strval) { free(key); break; } - plist_dict_insert_item(client_options, key, plist_new_string(strval)); + plist_dict_set_item(client_options, key, plist_new_string(strval)); } free(key); arg = va_arg(args, char*); |