From cd9f49913d12199fa7971309530a37f664df916e Mon Sep 17 00:00:00 2001 From: tedbullock Date: Thu, 29 Mar 2007 06:00:40 +0000 Subject: * examples/*.c: Print library version number on execution of examples * src/libmtp.h.in: New version number string to aid version echoing --- examples/detect.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'examples/detect.c') 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)) -- cgit v1.2.1