From c3a6eeb8ef3cd67f286135c93c1e220fb4d058d0 Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Sat, 30 Jan 2010 07:32:41 +0000 Subject: A new device and sendtr prototype fixup --- examples/detect.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'examples/detect.c') diff --git a/examples/detect.c b/examples/detect.c index f0f4687..bdfbff2 100644 --- a/examples/detect.c +++ b/examples/detect.c @@ -203,6 +203,13 @@ int main (int argc, char **argv) } // Device certificate XML fragment +#if 0 + /* + * This code is currently disabled: all devices say that + * they support getting a device certificate but a lot of + * them obviously doesn't, instead they crash when you try + * to obtain it. + */ ret = LIBMTP_Get_Device_Certificate(device, &devcert); if (ret == 0 && devcert != NULL) { fprintf(stdout, "\nDevice Certificate:\n%s\n", devcert); @@ -213,6 +220,7 @@ int main (int argc, char **argv) LIBMTP_Dump_Errorstack(device); LIBMTP_Clear_Errorstack(device); } +#endif // Try to get Media player device info XML file... files = LIBMTP_Get_Filelisting_With_Callback(device, NULL, NULL); -- cgit v1.2.1