GVFS / GIO API



Hi,

I have a question on GVFS / GIO API about gphoto2 backends feature.

How can I list all PTP devices (over gphoto2) mounted or not mounted ?


// With this code I can list all device mounted (PTP or not)
mounts = g_volume_monitor_get_mounts(g_volume_monitor_get());

for (scan=mounts; scan; scan=scan->next) {
	mount = (GMount *) scan->data;
}


// With this code I can list all device connected (mounted or not) 
// except the PTP devices not mounted
drives = g_volume_monitor_get_connected_drives(g_volume_monitor_get());

for (scan=drives; scan; scan=scan->next) {
	GDrive *drive = scan->data;
}


So how can list the PTP devices connected but not mounted ?


Regards,


Nicolas




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]