diff options
author | Nikias Bassen | 2010-03-06 01:26:19 +0100 |
---|---|---|
committer | Matt Colyer | 2010-03-08 21:09:35 -0800 |
commit | 6ceabe1e0a3c107c4b98d38f59f044b8eb7731a0 (patch) | |
tree | 701a591e8cd3df615906dc42000e7fa5ea1fba66 /tools | |
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 'tools')
-rw-r--r-- | tools/idevicebackup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c index d3b3ccc..1984833 100644 --- a/tools/idevicebackup.c +++ b/tools/idevicebackup.c @@ -59,7 +59,7 @@ enum device_link_file_status_t { DEVICE_LINK_FILE_STATUS_LAST_HUNK }; -static void notify_cb(const char *notification) +static void notify_cb(const char *notification, void *userdata) { if (!strcmp(notification, NP_SYNC_CANCEL_REQUEST)) { printf("User has aborted on-device\n"); @@ -543,7 +543,7 @@ int main(int argc, char *argv[]) ret = lockdownd_start_service(client, NP_SERVICE_NAME, &port); if ((ret == LOCKDOWN_E_SUCCESS) && port) { np_client_new(phone, port, &np); - np_set_notify_callback(np, notify_cb); + np_set_notify_callback(np, notify_cb, NULL); const char *noties[5] = { NP_SYNC_CANCEL_REQUEST, NP_SYNC_SUSPEND_REQUEST, |