From 4f92fffc71224ad8edcd2d1d3e8037e5e28b2896 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Tue, 25 May 2010 08:12:25 -0400 Subject: MTP: adjust ptptest app for changes in libusbhost API. Change-Id: I775e08c851a55d775b532129be11fb19515fbf6e Signed-off-by: Mike Lockwood --- media/mtp/ptptest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/media/mtp/ptptest.cpp b/media/mtp/ptptest.cpp index 5da4d45..3b09070 100644 --- a/media/mtp/ptptest.cpp +++ b/media/mtp/ptptest.cpp @@ -70,7 +70,7 @@ static void start_session(struct usb_endpoint *ep_in, struct usb_endpoint *ep_ou } } -static void usb_device_added(const char *devname) +static void usb_device_added(const char *devname, void *client_data) { struct usb_descriptor_header* desc; struct usb_descriptor_iter iter; @@ -140,7 +140,7 @@ static void usb_device_added(const char *devname) usb_device_close(device); } -static void usb_device_removed(const char *devname) +static void usb_device_removed(const char *devname, void *client_data) { if (sCameraDevice && !strcmp(devname, usb_device_get_name(sCameraDevice))) { delete sClient; @@ -153,7 +153,7 @@ static void usb_device_removed(const char *devname) int main(int argc, char* argv[]) { - if (usb_host_init(usb_device_added, usb_device_removed)) { + if (usb_host_init(usb_device_added, usb_device_removed, NULL)) { fprintf(stderr, "usb_host_init failed\n"); return -1; } -- cgit v1.1