diff options
| author | 2010-03-06 01:26:19 +0100 | |
|---|---|---|
| committer | 2010-03-08 21:09:35 -0800 | |
| commit | 6ceabe1e0a3c107c4b98d38f59f044b8eb7731a0 (patch) | |
| tree | 701a591e8cd3df615906dc42000e7fa5ea1fba66 /tools/idevicebackup.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 'tools/idevicebackup.c')
| -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 { | |||
| 59 | DEVICE_LINK_FILE_STATUS_LAST_HUNK | 59 | DEVICE_LINK_FILE_STATUS_LAST_HUNK |
| 60 | }; | 60 | }; |
| 61 | 61 | ||
| 62 | static void notify_cb(const char *notification) | 62 | static void notify_cb(const char *notification, void *userdata) |
| 63 | { | 63 | { |
| 64 | if (!strcmp(notification, NP_SYNC_CANCEL_REQUEST)) { | 64 | if (!strcmp(notification, NP_SYNC_CANCEL_REQUEST)) { |
| 65 | printf("User has aborted on-device\n"); | 65 | printf("User has aborted on-device\n"); |
| @@ -543,7 +543,7 @@ int main(int argc, char *argv[]) | |||
| 543 | ret = lockdownd_start_service(client, NP_SERVICE_NAME, &port); | 543 | ret = lockdownd_start_service(client, NP_SERVICE_NAME, &port); |
| 544 | if ((ret == LOCKDOWN_E_SUCCESS) && port) { | 544 | if ((ret == LOCKDOWN_E_SUCCESS) && port) { |
| 545 | np_client_new(phone, port, &np); | 545 | np_client_new(phone, port, &np); |
| 546 | np_set_notify_callback(np, notify_cb); | 546 | np_set_notify_callback(np, notify_cb, NULL); |
| 547 | const char *noties[5] = { | 547 | const char *noties[5] = { |
| 548 | NP_SYNC_CANCEL_REQUEST, | 548 | NP_SYNC_CANCEL_REQUEST, |
| 549 | NP_SYNC_SUSPEND_REQUEST, | 549 | NP_SYNC_SUSPEND_REQUEST, |
