summaryrefslogtreecommitdiff
path: root/examples/detect.c
diff options
context:
space:
mode:
authorLinus Walleij <triad@df.lth.se>2010-01-30 07:32:41 +0000
committerLinus Walleij <triad@df.lth.se>2010-01-30 07:32:41 +0000
commitc3a6eeb8ef3cd67f286135c93c1e220fb4d058d0 (patch)
tree7743372fd0db3edf958ce591a07185ddc849bba3 /examples/detect.c
parent99d390e7df0d267ba9564118e55a4a9525a88fcf (diff)
downloadlibmtp-c3a6eeb8ef3cd67f286135c93c1e220fb4d058d0.tar.gz
A new device and sendtr prototype fixup
Diffstat (limited to 'examples/detect.c')
-rw-r--r--examples/detect.c8
1 files changed, 8 insertions, 0 deletions
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);