From 6ceabe1e0a3c107c4b98d38f59f044b8eb7731a0 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 6 Mar 2010 01:26:19 +0100 Subject: Add user data parameter to notification callback function [#114 state:resolved] --- include/libimobiledevice/notification_proxy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/libimobiledevice/notification_proxy.h') 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; struct np_client_int; typedef struct np_client_int *np_client_t; -typedef void (*np_notify_cb_t) (const char *notification); +typedef void (*np_notify_cb_t) (const char *notification, void *userdata); /* Interface */ 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); np_error_t np_post_notification(np_client_t client, const char *notification); np_error_t np_observe_notification(np_client_t client, const char *notification); np_error_t np_observe_notifications(np_client_t client, const char **notification_spec); -np_error_t np_set_notify_callback(np_client_t client, np_notify_cb_t notify_cb); +np_error_t np_set_notify_callback(np_client_t client, np_notify_cb_t notify_cb, void *userdata); #ifdef __cplusplus } -- cgit v1.1-32-gdbae