summaryrefslogtreecommitdiffstats
path: root/src/installation_proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/installation_proxy.c')
-rw-r--r--src/installation_proxy.c14
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*);