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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/notification_proxy.c b/src/notification_proxy.c
index e17e2fe..60b2e03 100644
--- a/src/notification_proxy.c
+++ b/src/notification_proxy.c
@@ -89,7 +89,7 @@ static np_error_t np_error(property_list_service_error_t err)
89 return NP_E_UNKNOWN_ERROR; 89 return NP_E_UNKNOWN_ERROR;
90} 90}
91 91
92LIBIMOBILEDEVICE_API np_error_t np_client_new(idevice_t device, lockdownd_service_descriptor_t service, np_client_t *client) 92np_error_t np_client_new(idevice_t device, lockdownd_service_descriptor_t service, np_client_t *client)
93{ 93{
94 property_list_service_client_t plistclient = NULL; 94 property_list_service_client_t plistclient = NULL;
95 np_error_t err = np_error(property_list_service_client_new(device, service, &plistclient)); 95 np_error_t err = np_error(property_list_service_client_new(device, service, &plistclient));
@@ -107,14 +107,14 @@ LIBIMOBILEDEVICE_API np_error_t np_client_new(idevice_t device, lockdownd_servic
107 return NP_E_SUCCESS; 107 return NP_E_SUCCESS;
108} 108}
109 109
110LIBIMOBILEDEVICE_API np_error_t np_client_start_service(idevice_t device, np_client_t* client, const char* label) 110np_error_t np_client_start_service(idevice_t device, np_client_t* client, const char* label)
111{ 111{
112 np_error_t err = NP_E_UNKNOWN_ERROR; 112 np_error_t err = NP_E_UNKNOWN_ERROR;
113 service_client_factory_start_service(device, NP_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(np_client_new), &err); 113 service_client_factory_start_service(device, NP_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(np_client_new), &err);
114 return err; 114 return err;
115} 115}
116 116
117LIBIMOBILEDEVICE_API np_error_t np_client_free(np_client_t client) 117np_error_t np_client_free(np_client_t client)
118{ 118{
119 plist_t dict; 119 plist_t dict;
120 property_list_service_client_t parent; 120 property_list_service_client_t parent;
@@ -168,7 +168,7 @@ LIBIMOBILEDEVICE_API np_error_t np_client_free(np_client_t client)
168 return NP_E_SUCCESS; 168 return NP_E_SUCCESS;
169} 169}
170 170
171LIBIMOBILEDEVICE_API np_error_t np_post_notification(np_client_t client, const char *notification) 171np_error_t np_post_notification(np_client_t client, const char *notification)
172{ 172{
173 if (!client || !notification) { 173 if (!client || !notification) {
174 return NP_E_INVALID_ARG; 174 return NP_E_INVALID_ARG;
@@ -204,7 +204,7 @@ static np_error_t internal_np_observe_notification(np_client_t client, const cha
204 return res; 204 return res;
205} 205}
206 206
207LIBIMOBILEDEVICE_API np_error_t np_observe_notification( np_client_t client, const char *notification ) 207np_error_t np_observe_notification( np_client_t client, const char *notification )
208{ 208{
209 if (!client || !notification) { 209 if (!client || !notification) {
210 return NP_E_INVALID_ARG; 210 return NP_E_INVALID_ARG;
@@ -215,7 +215,7 @@ LIBIMOBILEDEVICE_API np_error_t np_observe_notification( np_client_t client, con
215 return res; 215 return res;
216} 216}
217 217
218LIBIMOBILEDEVICE_API np_error_t np_observe_notifications(np_client_t client, const char **notification_spec) 218np_error_t np_observe_notifications(np_client_t client, const char **notification_spec)
219{ 219{
220 int i = 0; 220 int i = 0;
221 np_error_t res = NP_E_UNKNOWN_ERROR; 221 np_error_t res = NP_E_UNKNOWN_ERROR;
@@ -346,7 +346,7 @@ void* np_notifier( void* arg )
346 return NULL; 346 return NULL;
347} 347}
348 348
349LIBIMOBILEDEVICE_API np_error_t np_set_notify_callback( np_client_t client, np_notify_cb_t notify_cb, void *user_data ) 349np_error_t np_set_notify_callback( np_client_t client, np_notify_cb_t notify_cb, void *user_data )
350{ 350{
351 if (!client) 351 if (!client)
352 return NP_E_INVALID_ARG; 352 return NP_E_INVALID_ARG;