diff options
author | Linus Walleij <triad@df.lth.se> | 2006-12-12 19:22:02 +0000 |
---|---|---|
committer | Linus Walleij <triad@df.lth.se> | 2006-12-12 19:22:02 +0000 |
commit | 9e1b081a9d8421337b996c22f6489b85b909136c (patch) | |
tree | 87832fb7268281b4a928d6825fab3b3c7f1d2b83 /examples/detect.c | |
parent | 73d02c9e31e815159fa457b96f66e1686fd053a9 (diff) | |
download | libmtp-9e1b081a9d8421337b996c22f6489b85b909136c.tar.gz |
Daniel's revamp of the storage API.
Diffstat (limited to 'examples/detect.c')
-rw-r--r-- | examples/detect.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/examples/detect.c b/examples/detect.c index c693b4c..823d96a 100644 --- a/examples/detect.c +++ b/examples/detect.c @@ -97,32 +97,6 @@ int main (int argc, char **argv) free(syncpartner); } - // Some storage info - ret = LIBMTP_Get_Storageinfo(device, &totalbytes, &freebytes, &storage_description, &volume_label); - if (ret == 0) { -#ifdef __WIN32__ - printf(" Total bytes on device: %I64u (%I64u MB)\n", - totalbytes, totalbytes/(1024*1024)); - printf(" Free bytes on device: %I64u (%I64u MB)\n", - freebytes, freebytes/(1024*1024)); -#else - printf(" Total bytes on device: %llu (%llu MB)\n", - totalbytes, totalbytes/(1024*1024)); - printf(" Free bytes on device: %llu (%llu MB)\n", - freebytes, freebytes/(1024*1024)); -#endif - if (storage_description != NULL) { - printf(" Storage description: \"%s\"\n", storage_description); - free(storage_description); - } - if (volume_label != NULL) { - printf(" Volume label: \"%s\"\n", volume_label); - free(volume_label); - } - } else { - printf(" Error getting disk info...\n"); - } - // Some battery info ret = LIBMTP_Get_Batterylevel(device, &maxbattlevel, &currbattlevel); if (ret == 0) { |