diff options
| author | 2010-03-06 01:26:19 +0100 | |
|---|---|---|
| committer | 2010-03-08 21:09:35 -0800 | |
| commit | 6ceabe1e0a3c107c4b98d38f59f044b8eb7731a0 (patch) | |
| tree | 701a591e8cd3df615906dc42000e7fa5ea1fba66 /dev/ideviceclient.c | |
| parent | 1d59d15f3b78f26fb231a9bf401ee40cd7b60463 (diff) | |
| download | libimobiledevice-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.c | 4 |
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 | ||
| 33 | static void notifier(const char *notification) | 33 | static 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); |
