Gnome2-VFS

 view release on metacpan or  search on metacpan

xs/GnomeVFSDrive.xs  view on Meta::CPAN

gnome_vfs_drive_is_connected (drive)
	GnomeVFSDrive *drive

##  gboolean gnome_vfs_drive_is_mounted (drive)
gboolean
gnome_vfs_drive_is_mounted (drive)
	GnomeVFSDrive *drive

##  gint gnome_vfs_drive_compare (a, b)
gint
gnome_vfs_drive_compare (a, b)
	GnomeVFSDrive *a
	GnomeVFSDrive *b

##  void gnome_vfs_drive_mount (GnomeVFSDrive *drive, GnomeVFSVolumeOpCallback callback, gpointer user_data)
##  void gnome_vfs_drive_unmount (GnomeVFSDrive *drive, GnomeVFSVolumeOpCallback callback, gpointer user_data)
##  void gnome_vfs_drive_eject (GnomeVFSDrive *drive, GnomeVFSVolumeOpCallback callback, gpointer user_data)
void
gnome_vfs_drive_mount (drive, func, data=NULL)
	GnomeVFSDrive *drive
	SV *func
	SV *data
    ALIAS:
	Gnome2::VFS::Drive::unmount = 1
	Gnome2::VFS::Drive::eject = 2
    PREINIT:
	GPerlCallback *callback;
    CODE:
	callback = vfs2perl_volume_op_callback_create (func, data);

	switch (ix) {
		case 0: gnome_vfs_drive_mount (drive,
	                                       (GnomeVFSVolumeOpCallback)
	                                         vfs2perl_volume_op_callback,
	                                       callback);
		        break;

		case 1: gnome_vfs_drive_unmount (drive,
	                                         (GnomeVFSVolumeOpCallback)
	                                           vfs2perl_volume_op_callback,
	                                         callback);
		        break;

		case 2: gnome_vfs_drive_eject (drive,
	                                       (GnomeVFSVolumeOpCallback)
	                                         vfs2perl_volume_op_callback,
	                                       callback);
		        break;

		default: g_assert_not_reached ();
	}

#if VFS_CHECK_VERSION (2, 8, 0)

##  GList * gnome_vfs_drive_get_mounted_volumes (GnomeVFSDrive *drive)
void
gnome_vfs_drive_get_mounted_volumes (drive)
	GnomeVFSDrive *drive
    PREINIT:
	GList *list = NULL, *i;
    PPCODE:
	list = gnome_vfs_drive_get_mounted_volumes (drive);

	for (i = list; i; i = i->next) {
		XPUSHs (sv_2mortal (newSVGnomeVFSVolume (i->data)));
	}

	gnome_vfs_drive_volume_list_free (list);

##  char * gnome_vfs_drive_get_hal_udi (drive)
char *
gnome_vfs_drive_get_hal_udi (drive)
	GnomeVFSDrive *drive

#endif /* 2.8 */

#if VFS_CHECK_VERSION (2, 16, 0)

gboolean gnome_vfs_drive_needs_eject (GnomeVFSDrive *drive);

#endif



( run in 0.776 second using v1.01-cache-2.11-cpan-5511b514fd6 )