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/notification_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/notification_proxy.c')
-rw-r--r-- | src/notification_proxy.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/notification_proxy.c b/src/notification_proxy.c index 6073b76..1ccda6b 100644 --- a/src/notification_proxy.c +++ b/src/notification_proxy.c @@ -177,14 +177,14 @@ np_error_t np_post_notification(np_client_t client, const char *notification) np_lock(client); plist_t dict = plist_new_dict(); - plist_dict_insert_item(dict,"Command", plist_new_string("PostNotification")); - plist_dict_insert_item(dict,"Name", plist_new_string(notification)); + plist_dict_set_item(dict,"Command", plist_new_string("PostNotification")); + plist_dict_set_item(dict,"Name", plist_new_string(notification)); np_error_t res = np_error(property_list_service_send_xml_plist(client->parent, dict)); plist_free(dict); dict = plist_new_dict(); - plist_dict_insert_item(dict,"Command", plist_new_string("Shutdown")); + plist_dict_set_item(dict,"Command", plist_new_string("Shutdown")); res = np_error(property_list_service_send_xml_plist(client->parent, dict)); plist_free(dict); @@ -237,8 +237,8 @@ np_error_t np_observe_notification( np_client_t client, const char *notification np_lock(client); plist_t dict = plist_new_dict(); - plist_dict_insert_item(dict,"Command", plist_new_string("ObserveNotification")); - plist_dict_insert_item(dict,"Name", plist_new_string(notification)); + plist_dict_set_item(dict,"Command", plist_new_string("ObserveNotification")); + plist_dict_set_item(dict,"Name", plist_new_string(notification)); np_error_t res = np_error(property_list_service_send_xml_plist(client->parent, dict)); if (res != NP_E_SUCCESS) { |