summaryrefslogtreecommitdiffstats
path: root/dev/ideviceclient.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-03-06 01:26:19 +0100
committerGravatar Matt Colyer2010-03-08 21:09:35 -0800
commit6ceabe1e0a3c107c4b98d38f59f044b8eb7731a0 (patch)
tree701a591e8cd3df615906dc42000e7fa5ea1fba66 /dev/ideviceclient.c
parent1d59d15f3b78f26fb231a9bf401ee40cd7b60463 (diff)
downloadlibimobiledevice-6ceabe1e0a3c107c4b98d38f59f044b8eb7731a0.tar.gz
libimobiledevice-6ceabe1e0a3c107c4b98d38f59f044b8eb7731a0.tar.bz2
Add user data parameter to notification callback function
[#114 state:resolved]
Diffstat (limited to 'dev/ideviceclient.c')
-rw-r--r--dev/ideviceclient.c4
1 files changed, 2 insertions, 2 deletions
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 @@
30#include <libimobiledevice/afc.h> 30#include <libimobiledevice/afc.h>
31#include <libimobiledevice/notification_proxy.h> 31#include <libimobiledevice/notification_proxy.h>
32 32
33static void notifier(const char *notification) 33static void notifier(const char *notification, void *userdata)
34{ 34{
35 printf("---------------------------------------------------------\n"); 35 printf("---------------------------------------------------------\n");
36 printf("------> Notification received: %s\n", notification); 36 printf("------> Notification received: %s\n", notification);
@@ -118,7 +118,7 @@ int main(int argc, char *argv[])
118 NULL 118 NULL
119 }; 119 };
120 np_observe_notifications(gnp, nspec); 120 np_observe_notifications(gnp, nspec);
121 np_set_notify_callback(gnp, notifier); 121 np_set_notify_callback(gnp, notifier, NULL);
122 } 122 }
123 123
124 perform_notification(phone, client, NP_SYNC_WILL_START); 124 perform_notification(phone, client, NP_SYNC_WILL_START);