![]() |
![]() |
![]() |
OGMDvd Reference Manual | |
---|---|---|---|---|
Top | Description |
#include <ogmdvd-drive.h> OGMDvdDrive; const gchar * ogmdvd_drive_get_device (OGMDvdDrive *drive
); GDrive * ogmdvd_drive_get_gdrive (OGMDvdDrive *drive
); gchar * ogmdvd_drive_get_name (OGMDvdDrive *drive
); gint ogmdvd_drive_get_drive_type (OGMDvdDrive *drive
); gint ogmdvd_drive_get_medium_type (OGMDvdDrive *drive
); void ogmdvd_drive_load (OGMDvdDrive *drive
); gboolean ogmdvd_drive_can_eject (OGMDvdDrive *drive
); void ogmdvd_drive_eject (OGMDvdDrive *drive
); gboolean ogmdvd_drive_is_door_open (OGMDvdDrive *drive
); gboolean ogmdvd_drive_lock (OGMDvdDrive *drive
); gboolean ogmdvd_drive_unlock (OGMDvdDrive *drive
);
const gchar * ogmdvd_drive_get_device (OGMDvdDrive *drive
);
Gets the name of the device associated with the drive.
|
OGMDvdDrive |
Returns : |
the name of the device (must be not be freed). |
GDrive * ogmdvd_drive_get_gdrive (OGMDvdDrive *drive
);
Gets the GDrive associated to drive
.
|
OGMDvdDrive |
Returns : |
a GDrive, or NULL |
gchar * ogmdvd_drive_get_name (OGMDvdDrive *drive
);
Gets the name of the drive for use in a user interface
|
OGMDvdDrive |
Returns : |
the name of the drive (must be freed with g_free() )
|
gint ogmdvd_drive_get_drive_type (OGMDvdDrive *drive
);
Gets the type of the drive.
|
OGMDvdDrive |
Returns : |
the type of drive, or -1 |
gint ogmdvd_drive_get_medium_type (OGMDvdDrive *drive
);
Gets the type of the medium in drive
.
|
OGMDvdDrive |
Returns : |
The OGMDvdMediumType of the media in the drive or the
following special values:
OGMDVD_MEDIA_TYPE_UNKNOWN if the type can not be determined
OGMDVD_MEDIA_TYPE_NONE if no medium is present
|
void ogmdvd_drive_load (OGMDvdDrive *drive
);
Loads a drive.
|
OGMDvdDrive |
gboolean ogmdvd_drive_can_eject (OGMDvdDrive *drive
);
Checks if a drive can be ejected.
|
OGMDvdDrive |
Returns : |
TRUE if the drive can be ejected, FALSE otherwise.
|
void ogmdvd_drive_eject (OGMDvdDrive *drive
);
Ejects a drive.
|
OGMDvdDrive |
gboolean ogmdvd_drive_is_door_open (OGMDvdDrive *drive
);
Reports whether the drive door or tray is open.
|
OGMDvdDrive |
Returns : |
TRUE if the drive door is open, FALSE otherwise.
|
gboolean ogmdvd_drive_lock (OGMDvdDrive *drive
);
Locks a drive.
|
OGMDvdDrive |
Returns : |
TRUE if the drive has been locked, FALSE otherwise
|
gboolean ogmdvd_drive_unlock (OGMDvdDrive *drive
);
Unlocks a drive.
|
OGMDvdDrive |
Returns : |
TRUE if the drive has been unlocked, FALSE otherwise
|