diff options
Diffstat (limited to 'src/notification_proxy.c')
| -rw-r--r-- | src/notification_proxy.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/notification_proxy.c b/src/notification_proxy.c index 909ede4..541e429 100644 --- a/src/notification_proxy.c +++ b/src/notification_proxy.c | |||
| @@ -86,7 +86,7 @@ static np_error_t np_error(property_list_service_error_t err) | |||
| 86 | return NP_E_UNKNOWN_ERROR; | 86 | return NP_E_UNKNOWN_ERROR; |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | np_error_t np_client_new(idevice_t device, lockdownd_service_descriptor_t service, np_client_t *client) | 89 | LIBIMOBILEDEVICE_API np_error_t np_client_new(idevice_t device, lockdownd_service_descriptor_t service, np_client_t *client) |
| 90 | { | 90 | { |
| 91 | property_list_service_client_t plistclient = NULL; | 91 | property_list_service_client_t plistclient = NULL; |
| 92 | np_error_t err = np_error(property_list_service_client_new(device, service, &plistclient)); | 92 | np_error_t err = np_error(property_list_service_client_new(device, service, &plistclient)); |
| @@ -104,14 +104,14 @@ np_error_t np_client_new(idevice_t device, lockdownd_service_descriptor_t servic | |||
| 104 | return NP_E_SUCCESS; | 104 | return NP_E_SUCCESS; |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | np_error_t np_client_start_service(idevice_t device, np_client_t* client, const char* label) | 107 | LIBIMOBILEDEVICE_API np_error_t np_client_start_service(idevice_t device, np_client_t* client, const char* label) |
| 108 | { | 108 | { |
| 109 | np_error_t err = NP_E_UNKNOWN_ERROR; | 109 | np_error_t err = NP_E_UNKNOWN_ERROR; |
| 110 | service_client_factory_start_service(device, NP_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(np_client_new), &err); | 110 | service_client_factory_start_service(device, NP_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(np_client_new), &err); |
| 111 | return err; | 111 | return err; |
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | np_error_t np_client_free(np_client_t client) | 114 | LIBIMOBILEDEVICE_API np_error_t np_client_free(np_client_t client) |
| 115 | { | 115 | { |
| 116 | if (!client) | 116 | if (!client) |
| 117 | return NP_E_INVALID_ARG; | 117 | return NP_E_INVALID_ARG; |
| @@ -128,7 +128,7 @@ np_error_t np_client_free(np_client_t client) | |||
| 128 | return NP_E_SUCCESS; | 128 | return NP_E_SUCCESS; |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | np_error_t np_post_notification(np_client_t client, const char *notification) | 131 | LIBIMOBILEDEVICE_API np_error_t np_post_notification(np_client_t client, const char *notification) |
| 132 | { | 132 | { |
| 133 | if (!client || !notification) { | 133 | if (!client || !notification) { |
| 134 | return NP_E_INVALID_ARG; | 134 | return NP_E_INVALID_ARG; |
| @@ -179,7 +179,7 @@ np_error_t np_post_notification(np_client_t client, const char *notification) | |||
| 179 | return res; | 179 | return res; |
| 180 | } | 180 | } |
| 181 | 181 | ||
| 182 | np_error_t np_observe_notification( np_client_t client, const char *notification ) | 182 | LIBIMOBILEDEVICE_API np_error_t np_observe_notification( np_client_t client, const char *notification ) |
| 183 | { | 183 | { |
| 184 | if (!client || !notification) { | 184 | if (!client || !notification) { |
| 185 | return NP_E_INVALID_ARG; | 185 | return NP_E_INVALID_ARG; |
| @@ -200,7 +200,7 @@ np_error_t np_observe_notification( np_client_t client, const char *notification | |||
| 200 | return res; | 200 | return res; |
| 201 | } | 201 | } |
| 202 | 202 | ||
| 203 | np_error_t np_observe_notifications(np_client_t client, const char **notification_spec) | 203 | LIBIMOBILEDEVICE_API np_error_t np_observe_notifications(np_client_t client, const char **notification_spec) |
| 204 | { | 204 | { |
| 205 | int i = 0; | 205 | int i = 0; |
| 206 | np_error_t res = NP_E_UNKNOWN_ERROR; | 206 | np_error_t res = NP_E_UNKNOWN_ERROR; |
| @@ -329,7 +329,7 @@ void* np_notifier( void* arg ) | |||
| 329 | return NULL; | 329 | return NULL; |
| 330 | } | 330 | } |
| 331 | 331 | ||
| 332 | np_error_t np_set_notify_callback( np_client_t client, np_notify_cb_t notify_cb, void *user_data ) | 332 | LIBIMOBILEDEVICE_API np_error_t np_set_notify_callback( np_client_t client, np_notify_cb_t notify_cb, void *user_data ) |
| 333 | { | 333 | { |
| 334 | if (!client) | 334 | if (!client) |
| 335 | return NP_E_INVALID_ARG; | 335 | return NP_E_INVALID_ARG; |
