![]() |
![]() |
![]() |
Libbrasero-media Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
BraseroMediumMonitor; BraseroMediumMonitor * brasero_medium_monitor_get_default (void); enum BraseroMediaType; enum BraseroDriveType; GSList * brasero_medium_monitor_get_media (BraseroMediumMonitor *monitor, BraseroMediaType type); GSList * brasero_medium_monitor_get_drives (BraseroMediumMonitor *monitor, BraseroDriveType type); BraseroDrive * brasero_medium_monitor_get_drive (BraseroMediumMonitor *monitor, const gchar *device); gboolean brasero_medium_monitor_is_probing (BraseroMediumMonitor *monitor);
BraseroMediumMonitor * brasero_medium_monitor_get_default (void);
Gets the currently active monitor.
Returns : |
a BraseroMediumMonitor. Unref when it is not needed anymore. |
typedef enum { BRASERO_MEDIA_TYPE_NONE = 0, BRASERO_MEDIA_TYPE_FILE = 1, BRASERO_MEDIA_TYPE_DATA = 1 << 1, BRASERO_MEDIA_TYPE_AUDIO = 1 << 2, BRASERO_MEDIA_TYPE_WRITABLE = 1 << 3, BRASERO_MEDIA_TYPE_REWRITABLE = 1 << 4, BRASERO_MEDIA_TYPE_ANY_IN_BURNER = 1 << 5, /* If combined with other flags it will filter. * if alone all CDs are returned. * It can't be combined with FILE type. */ BRASERO_MEDIA_TYPE_CD = 1 << 6, BRASERO_MEDIA_TYPE_ALL_BUT_FILE = 0xFE, BRASERO_MEDIA_TYPE_ALL = 0xFF } BraseroMediaType;
typedef enum { BRASERO_DRIVE_TYPE_NONE = 0, BRASERO_DRIVE_TYPE_FILE = 1, BRASERO_DRIVE_TYPE_WRITER = 1 << 1, BRASERO_DRIVE_TYPE_READER = 1 << 2, BRASERO_DRIVE_TYPE_ALL_BUT_FILE = 0xFE, BRASERO_DRIVE_TYPE_ALL = 0xFF } BraseroDriveType;
GSList * brasero_medium_monitor_get_media (BraseroMediumMonitor *monitor, BraseroMediaType type);
Obtains the list of available media that are of the given type.
|
a BraseroMediumMonitor |
|
the type of BraseroMedium that should be in the list |
Returns : |
a GSList or NULL |
GSList * brasero_medium_monitor_get_drives (BraseroMediumMonitor *monitor, BraseroDriveType type);
Gets the list of available drives that are of the given type.
|
a BraseroMediumMonitor |
|
a BraseroDriveType to tell what type of drives to include in the list |
Returns : |
a GSList or NULL |
BraseroDrive * brasero_medium_monitor_get_drive (BraseroMediumMonitor *monitor, const gchar *device);
Returns the BraseroDrive object whose path is path
.
|
a BraseroMediumMonitor |
|
the path of the device |
Returns : |
a BraseroDrive or NULL. It should be unreffed when no longer in use. |
gboolean brasero_medium_monitor_is_probing (BraseroMediumMonitor *monitor);
Returns if the library is still probing some other media.
|
a BraseroMediumMonitor |
Returns : |
TRUE if it is still probing some media
|