~ubuntu-branches/ubuntu/wily/gnomad2/wily

« back to all changes in this revision

Viewing changes to src/jukebox.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-03-18 15:24:51 UTC
  • Revision ID: james.westby@ubuntu.com-20070318152451-1be294hu82ljyzdh
Tags: 2.8.8-1.1ubuntu2
Apply patch to use LIBMTP_Get_Storage, as opposed to 
LIBMTP_Get_Storageinfo. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1233
1233
    gchar *desc;
1234
1234
    gchar *label;
1235
1235
 
1236
 
    ret = LIBMTP_Get_Storageinfo(mtpdevice, &totalbytes, &freebytes, &desc, &label);
1237
 
    if (ret != 0) {
 
1236
//    ret = LIBMTP_Get_Storageinfo(mtpdevice, &totalbytes, &freebytes, &desc, &label);
 
1237
    ret = LIBMTP_Get_Storage(mtpdevice, LIBMTP_STORAGE_SORTBY_NOTSORTED);
 
1238
    
 
1239
    if (ret == 0) {
 
1240
        totalbytes = mtpdevice->storage->MaxCapacity;
 
1241
        freebytes = mtpdevice->storage->FreeSpaceInBytes;
 
1242
 
 
1243
        // These are not used right now.
 
1244
        desc = NULL;
 
1245
        label = NULL;
 
1246
    } else {
1238
1247
      totalbytes = 0;
1239
1248
      freebytes = 0;
1240
1249
    }