summaryrefslogtreecommitdiffstats
path: root/dev/ideviceclient.c
diff options
context:
space:
mode:
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);