summaryrefslogtreecommitdiff
path: root/examples/detect.c
diff options
context:
space:
mode:
authorLinus Walleij <triad@df.lth.se>2006-12-12 19:22:02 +0000
committerLinus Walleij <triad@df.lth.se>2006-12-12 19:22:02 +0000
commit9e1b081a9d8421337b996c22f6489b85b909136c (patch)
tree87832fb7268281b4a928d6825fab3b3c7f1d2b83 /examples/detect.c
parent73d02c9e31e815159fa457b96f66e1686fd053a9 (diff)
downloadlibmtp-9e1b081a9d8421337b996c22f6489b85b909136c.tar.gz
Daniel's revamp of the storage API.
Diffstat (limited to 'examples/detect.c')
-rw-r--r--examples/detect.c26
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) {