Re: libgpod itdb_device_get_storage_info
Adam Lewis <[email protected]>
| Newsgroups | gmane.comp.ipod.gtkpod |
|---|---|
| Message-ID | <[email protected]> |
Here is a rough approximation of what the patch would look like:
GFile *root;
GFileInfo *info;
guint64 capacity, free;
root = g_file_new_for_path (device->mountpoint);
info = g_file_query_filesystem_info (root, "*", NULL, NULL);
g_object_unref (G_OBJECT (root));
if (info == NULL) {
return 0;
}
capacity = g_file_info_get_attribute_uint64 (info,
G_FILE_ATTRIBUTE_FILESYSTEM_SIZE);
free = g_file_info_get_attribute_uint64 (info,
G_FILE_ATTRIBUTE_FILESYSTEM_FREE);
g_object_unref (G_OBJECT (info));
On Sat, Mar 19, 2011 at 5:14 PM, Christophe Fergeau <[email protected]>wrote:
> 2011/3/19 Adam Lewis <[email protected]>:
> >
> > Let me know if this seems like I'm heading in the right direction as I'm
> not
> > that familiar with libgpod. The patch will essentially forward to a glib
> > file function that properly handles gvfs-fuse mounted filesystems.
>
> Do you have a patch to show (even if it's just a preliminary one) or
> the name of the function you're planning to use?
>
> Christophe
>
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Gtkpod-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-devel