summaryrefslogtreecommitdiff
path: root/examples/detect.c
diff options
context:
space:
mode:
authortedbullock <tedbullock>2007-03-29 06:00:40 +0000
committertedbullock <tedbullock>2007-03-29 06:00:40 +0000
commitcd9f49913d12199fa7971309530a37f664df916e (patch)
tree59ceed35657739e31b567e6ceeb8395e0c8b36ff /examples/detect.c
parent3968f36bc964334dcd3477ca780374436b673f17 (diff)
downloadlibmtp-cd9f49913d12199fa7971309530a37f664df916e.tar.gz
* examples/*.c: Print library version number on execution of examples
* src/libmtp.h.in: New version number string to aid version echoing
Diffstat (limited to 'examples/detect.c')
-rw-r--r--examples/detect.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/examples/detect.c b/examples/detect.c
index ea65214..2e41137 100644
--- a/examples/detect.c
+++ b/examples/detect.c
@@ -75,25 +75,7 @@ int main (int argc, char **argv)
LIBMTP_Init();
- if (argc > 1 && !strcmp(argv[1], "-p")) {
- probeonly = 1;
- }
-
- if (probeonly) {
-// uint16_t vid;
-// uint16_t pid;
-//
-// ret = LIBMTP_Detect_Descriptor(&vid, &pid);
-// if (ret > 0) {
-// printf("DETECTED MTP DEVICE WITH VID:%04x, PID:%04X\n", vid, pid);
-// exit(0);
-// } else {
-// exit(1);
-// }
- fprintf(stdout, "LIBMTP Panic: Probing has been disabled until it has "
- "been refactored to\nuse multiple devices\n");
- }
-
+ fprintf(stdout, "libmtp version: " LIBMTP_VERSION_STRING "\n\n");
fprintf(stdout, "Attempting to connect device(s)\n");
switch(LIBMTP_Get_Connected_Devices(&device))