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] --- dev/ideviceclient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev/ideviceclient.c') diff --git a/dev/ideviceclient.c b/dev/ideviceclient.c index 2ed93d2..d952594 100644 --- a/dev/ideviceclient.c +++ b/dev/ideviceclient.c @@ -30,7 +30,7 @@ #include #include -static void notifier(const char *notification) +static void notifier(const char *notification, void *userdata) { printf("---------------------------------------------------------\n"); printf("------> Notification received: %s\n", notification); @@ -118,7 +118,7 @@ int main(int argc, char *argv[]) NULL }; np_observe_notifications(gnp, nspec); - np_set_notify_callback(gnp, notifier); + np_set_notify_callback(gnp, notifier, NULL); } perform_notification(phone, client, NP_SYNC_WILL_START); -- cgit v1.1-32-gdbae