From 6ceabe1e0a3c107c4b98d38f59f044b8eb7731a0 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 6 Mar 2010 01:26:19 +0100 Subject: Add user data parameter to notification callback function [#114 state:resolved] --- tools/idevicebackup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/idevicebackup.c') 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, -- cgit v1.1-32-gdbae