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 @@
#include <libimobiledevice/afc.h>
#include <libimobiledevice/notification_proxy.h>
-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);