diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libimobiledevice/notification_proxy.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libimobiledevice/notification_proxy.h b/include/libimobiledevice/notification_proxy.h index adbb4cc..4f4c1fd 100644 --- a/include/libimobiledevice/notification_proxy.h +++ b/include/libimobiledevice/notification_proxy.h | |||
| @@ -71,7 +71,7 @@ typedef int16_t np_error_t; | |||
| 71 | struct np_client_int; | 71 | struct np_client_int; |
| 72 | typedef struct np_client_int *np_client_t; | 72 | typedef struct np_client_int *np_client_t; |
| 73 | 73 | ||
| 74 | typedef void (*np_notify_cb_t) (const char *notification); | 74 | typedef void (*np_notify_cb_t) (const char *notification, void *userdata); |
| 75 | 75 | ||
| 76 | /* Interface */ | 76 | /* Interface */ |
| 77 | np_error_t np_client_new(idevice_t device, uint16_t port, np_client_t *client); | 77 | np_error_t np_client_new(idevice_t device, uint16_t port, np_client_t *client); |
| @@ -79,7 +79,7 @@ np_error_t np_client_free(np_client_t client); | |||
| 79 | np_error_t np_post_notification(np_client_t client, const char *notification); | 79 | np_error_t np_post_notification(np_client_t client, const char *notification); |
| 80 | np_error_t np_observe_notification(np_client_t client, const char *notification); | 80 | np_error_t np_observe_notification(np_client_t client, const char *notification); |
| 81 | np_error_t np_observe_notifications(np_client_t client, const char **notification_spec); | 81 | np_error_t np_observe_notifications(np_client_t client, const char **notification_spec); |
| 82 | np_error_t np_set_notify_callback(np_client_t client, np_notify_cb_t notify_cb); | 82 | np_error_t np_set_notify_callback(np_client_t client, np_notify_cb_t notify_cb, void *userdata); |
| 83 | 83 | ||
| 84 | #ifdef __cplusplus | 84 | #ifdef __cplusplus |
| 85 | } | 85 | } |
