diff options
author | Jonathan Beck | 2009-10-11 18:10:16 +0200 |
---|---|---|
committer | Matt Colyer | 2009-10-13 17:59:57 -0700 |
commit | 4740e30d178c8a588f522586a817039d6be8da3b (patch) | |
tree | ce2be1fe383342fba1cc75a8ae32931a57637d51 /src/NotificationProxy.c | |
parent | 90f2ade2c9f5e242ae05417662147f46ba6c1153 (diff) | |
download | libimobiledevice-4740e30d178c8a588f522586a817039d6be8da3b.tar.gz libimobiledevice-4740e30d178c8a588f522586a817039d6be8da3b.tar.bz2 |
Update to latest libplist API.
Signed-off-by: Matt Colyer <matt@colyer.name>
[#77 state:resolved]
Diffstat (limited to 'src/NotificationProxy.c')
-rw-r--r-- | src/NotificationProxy.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/NotificationProxy.c b/src/NotificationProxy.c index da636ab..ee2ad95 100644 --- a/src/NotificationProxy.c +++ b/src/NotificationProxy.c @@ -177,17 +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_add_sub_key_el(dict, "Command"); - plist_add_sub_string_el(dict, "PostNotification"); - plist_add_sub_key_el(dict, "Name"); - plist_add_sub_string_el(dict, notification); + plist_dict_insert_item(dict,"Command", plist_new_string("PostNotification")); + plist_dict_insert_item(dict,"Name", plist_new_string(notification)); np_error_t res = np_plist_send(client, dict); plist_free(dict); dict = plist_new_dict(); - plist_add_sub_key_el(dict, "Command"); - plist_add_sub_string_el(dict, "Shutdown"); + plist_dict_insert_item(dict,"Command", plist_new_string("Shutdown")); res = np_plist_send(client, dict); plist_free(dict); @@ -213,10 +210,8 @@ np_error_t np_observe_notification( np_client_t client, const char *notification np_lock(client); plist_t dict = plist_new_dict(); - plist_add_sub_key_el(dict, "Command"); - plist_add_sub_string_el(dict, "ObserveNotification"); - plist_add_sub_key_el(dict, "Name"); - plist_add_sub_string_el(dict, notification); + plist_dict_insert_item(dict,"Command", plist_new_string("ObserveNotification")); + plist_dict_insert_item(dict,"Name", plist_new_string(notification)); np_error_t res = np_plist_send(client, dict); if (res != NP_E_SUCCESS) { |