diff options
Diffstat (limited to 'include/libimobiledevice/notification_proxy.h')
-rw-r--r-- | include/libimobiledevice/notification_proxy.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/libimobiledevice/notification_proxy.h b/include/libimobiledevice/notification_proxy.h index 4eccf20..f4f090b 100644 --- a/include/libimobiledevice/notification_proxy.h +++ b/include/libimobiledevice/notification_proxy.h | |||
@@ -109,7 +109,7 @@ typedef void (*np_notify_cb_t) (const char *notification, void *user_data); | |||
109 | * or NP_E_CONN_FAILED when the connection to the device could not be | 109 | * or NP_E_CONN_FAILED when the connection to the device could not be |
110 | * established. | 110 | * established. |
111 | */ | 111 | */ |
112 | np_error_t np_client_new(idevice_t device, lockdownd_service_descriptor_t service, np_client_t *client); | 112 | LIBIMOBILEDEVICE_API np_error_t np_client_new(idevice_t device, lockdownd_service_descriptor_t service, np_client_t *client); |
113 | 113 | ||
114 | /** | 114 | /** |
115 | * Starts a new notification proxy service on the specified device and connects to it. | 115 | * Starts a new notification proxy service on the specified device and connects to it. |
@@ -124,7 +124,7 @@ np_error_t np_client_new(idevice_t device, lockdownd_service_descriptor_t servic | |||
124 | * @return NP_E_SUCCESS on success, or an NP_E_* error | 124 | * @return NP_E_SUCCESS on success, or an NP_E_* error |
125 | * code otherwise. | 125 | * code otherwise. |
126 | */ | 126 | */ |
127 | np_error_t np_client_start_service(idevice_t device, np_client_t* client, const char* label); | 127 | LIBIMOBILEDEVICE_API np_error_t np_client_start_service(idevice_t device, np_client_t* client, const char* label); |
128 | 128 | ||
129 | /** | 129 | /** |
130 | * Disconnects a notification_proxy client from the device and frees up the | 130 | * Disconnects a notification_proxy client from the device and frees up the |
@@ -134,7 +134,7 @@ np_error_t np_client_start_service(idevice_t device, np_client_t* client, const | |||
134 | * | 134 | * |
135 | * @return NP_E_SUCCESS on success, or NP_E_INVALID_ARG when client is NULL. | 135 | * @return NP_E_SUCCESS on success, or NP_E_INVALID_ARG when client is NULL. |
136 | */ | 136 | */ |
137 | np_error_t np_client_free(np_client_t client); | 137 | LIBIMOBILEDEVICE_API np_error_t np_client_free(np_client_t client); |
138 | 138 | ||
139 | 139 | ||
140 | /** | 140 | /** |
@@ -145,7 +145,7 @@ np_error_t np_client_free(np_client_t client); | |||
145 | * | 145 | * |
146 | * @return NP_E_SUCCESS on success, or an error returned by np_plist_send | 146 | * @return NP_E_SUCCESS on success, or an error returned by np_plist_send |
147 | */ | 147 | */ |
148 | np_error_t np_post_notification(np_client_t client, const char *notification); | 148 | LIBIMOBILEDEVICE_API np_error_t np_post_notification(np_client_t client, const char *notification); |
149 | 149 | ||
150 | /** | 150 | /** |
151 | * Tells the device to send a notification on the specified event. | 151 | * Tells the device to send a notification on the specified event. |
@@ -156,7 +156,7 @@ np_error_t np_post_notification(np_client_t client, const char *notification); | |||
156 | * @return NP_E_SUCCESS on success, NP_E_INVALID_ARG when client or | 156 | * @return NP_E_SUCCESS on success, NP_E_INVALID_ARG when client or |
157 | * notification are NULL, or an error returned by np_plist_send. | 157 | * notification are NULL, or an error returned by np_plist_send. |
158 | */ | 158 | */ |
159 | np_error_t np_observe_notification(np_client_t client, const char *notification); | 159 | LIBIMOBILEDEVICE_API np_error_t np_observe_notification(np_client_t client, const char *notification); |
160 | 160 | ||
161 | /** | 161 | /** |
162 | * Tells the device to send a notification on specified events. | 162 | * Tells the device to send a notification on specified events. |
@@ -169,7 +169,7 @@ np_error_t np_observe_notification(np_client_t client, const char *notification) | |||
169 | * @return NP_E_SUCCESS on success, NP_E_INVALID_ARG when client is null, | 169 | * @return NP_E_SUCCESS on success, NP_E_INVALID_ARG when client is null, |
170 | * or an error returned by np_observe_notification. | 170 | * or an error returned by np_observe_notification. |
171 | */ | 171 | */ |
172 | np_error_t np_observe_notifications(np_client_t client, const char **notification_spec); | 172 | LIBIMOBILEDEVICE_API np_error_t np_observe_notifications(np_client_t client, const char **notification_spec); |
173 | 173 | ||
174 | /** | 174 | /** |
175 | * This function allows an application to define a callback function that will | 175 | * This function allows an application to define a callback function that will |
@@ -193,7 +193,7 @@ np_error_t np_observe_notifications(np_client_t client, const char **notificatio | |||
193 | * NP_E_INVALID_ARG when client is NULL, or NP_E_UNKNOWN_ERROR when | 193 | * NP_E_INVALID_ARG when client is NULL, or NP_E_UNKNOWN_ERROR when |
194 | * the callback thread could no be created. | 194 | * the callback thread could no be created. |
195 | */ | 195 | */ |
196 | np_error_t np_set_notify_callback(np_client_t client, np_notify_cb_t notify_cb, void *user_data); | 196 | LIBIMOBILEDEVICE_API np_error_t np_set_notify_callback(np_client_t client, np_notify_cb_t notify_cb, void *user_data); |
197 | 197 | ||
198 | #ifdef __cplusplus | 198 | #ifdef __cplusplus |
199 | } | 199 | } |