summaryrefslogtreecommitdiffstats
path: root/src/notification_proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/notification_proxy.c')
-rw-r--r--src/notification_proxy.c10
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)
177 np_lock(client); 177 np_lock(client);
178 178
179 plist_t dict = plist_new_dict(); 179 plist_t dict = plist_new_dict();
180 plist_dict_insert_item(dict,"Command", plist_new_string("PostNotification")); 180 plist_dict_set_item(dict,"Command", plist_new_string("PostNotification"));
181 plist_dict_insert_item(dict,"Name", plist_new_string(notification)); 181 plist_dict_set_item(dict,"Name", plist_new_string(notification));
182 182
183 np_error_t res = np_error(property_list_service_send_xml_plist(client->parent, dict)); 183 np_error_t res = np_error(property_list_service_send_xml_plist(client->parent, dict));
184 plist_free(dict); 184 plist_free(dict);
185 185
186 dict = plist_new_dict(); 186 dict = plist_new_dict();
187 plist_dict_insert_item(dict,"Command", plist_new_string("Shutdown")); 187 plist_dict_set_item(dict,"Command", plist_new_string("Shutdown"));
188 188
189 res = np_error(property_list_service_send_xml_plist(client->parent, dict)); 189 res = np_error(property_list_service_send_xml_plist(client->parent, dict));
190 plist_free(dict); 190 plist_free(dict);
@@ -237,8 +237,8 @@ np_error_t np_observe_notification( np_client_t client, const char *notification
237 np_lock(client); 237 np_lock(client);
238 238
239 plist_t dict = plist_new_dict(); 239 plist_t dict = plist_new_dict();
240 plist_dict_insert_item(dict,"Command", plist_new_string("ObserveNotification")); 240 plist_dict_set_item(dict,"Command", plist_new_string("ObserveNotification"));
241 plist_dict_insert_item(dict,"Name", plist_new_string(notification)); 241 plist_dict_set_item(dict,"Name", plist_new_string(notification));
242 242
243 np_error_t res = np_error(property_list_service_send_xml_plist(client->parent, dict)); 243 np_error_t res = np_error(property_list_service_send_xml_plist(client->parent, dict));
244 if (res != NP_E_SUCCESS) { 244 if (res != NP_E_SUCCESS) {