## nautilus-burn-drive-monitor

nautilus-burn-drive-monitor

## Synopsis

    typedef             NautilusBurnDriveMonitorPrivate;
    void                media_added                         (NautilusBurnDrive *drive);
    void                media_removed                       (NautilusBurnDrive *drive);
    void                drive_connected                     (NautilusBurnDriveMonitor *monitor,
                                                             NautilusBurnDrive *drive);
    void                drive_disconnected                  (NautilusBurnDriveMonitor *monitor,
                                                             NautilusBurnDrive *drive);
    NautilusBurnDriveMonitor* nautilus_burn_get_drive_monitor
                                                            (void);
    GList*              nautilus_burn_drive_monitor_get_drives
                                                            (NautilusBurnDriveMonitor *monitor);
    GList*              nautilus_burn_drive_monitor_get_recorder_drives
                                                            (NautilusBurnDriveMonitor *monitor);
    NautilusBurnDrive*  nautilus_burn_drive_monitor_get_drive_for_device
                                                            (NautilusBurnDriveMonitor *monitor,
                                                             const char *path);
    NautilusBurnDrive*  nautilus_burn_drive_monitor_get_drive_for_image
                                                            (NautilusBurnDriveMonitor *monitor);

## Description

## Details

### NautilusBurnDriveMonitorPrivate

    typedef struct NautilusBurnDriveMonitorPrivate NautilusBurnDriveMonitorPrivate;

### media_added ()

    void                media_added                         (NautilusBurnDrive *drive);

`drive` : |

### media_removed ()

    void                media_removed                       (NautilusBurnDrive *drive);

`drive` : |

### drive_connected ()

    void                drive_connected                     (NautilusBurnDriveMonitor *monitor,
                                                             NautilusBurnDrive *drive);

`monitor` : |
`drive` : |

### drive_disconnected ()

    void                drive_disconnected                  (NautilusBurnDriveMonitor *monitor,
                                                             NautilusBurnDrive *drive);

`monitor` : |
`drive` : |

### nautilus_burn_get_drive_monitor ()

    NautilusBurnDriveMonitor* nautilus_burn_get_drive_monitor
                                                            (void);

Get a reference to the drive monitor

Returns a pointer to the NautilusBurnDriveMonitor singleton. NautilusBurnDriveMonitor is a singleton, this means it is guaranteed to exist and be valid until `nautilus_burn_shutdown()` is called. Consequently, it doesn't need to be refcounted since nautilus-burn will hold a reference to it until it is shut down. It is created by `nautilus_burn_init()`.

Returns : | NautilusBurnDriveMonitor

Since 2.16

### nautilus_burn_drive_monitor_get_drives ()

    GList*              nautilus_burn_drive_monitor_get_drives
                                                            (NautilusBurnDriveMonitor *monitor);

Get the list of available NautilusBurnDrive

`monitor` : | NautilusBurnDriveMonitor
Returns : | list of drives

Since 2.16

### nautilus_burn_drive_monitor_get_recorder_drives ()

    GList*              nautilus_burn_drive_monitor_get_recorder_drives
                                                            (NautilusBurnDriveMonitor *monitor);

Get the list of available NautilusBurnDrive that are capable of recording

`monitor` : | NautilusBurnDriveMonitor
Returns : | list of drives that can record

Since 2.16

### nautilus_burn_drive_monitor_get_drive_for_device ()

    NautilusBurnDrive*  nautilus_burn_drive_monitor_get_drive_for_device
                                                            (NautilusBurnDriveMonitor *monitor,
                                                             const char *path);

Retrieve the NautilusBurnDrive that corresponds to device.

`monitor` : | NautilusBurnDriveMonitor
`path` : |
Returns : | A new drive.

Since 2.16

### nautilus_burn_drive_monitor_get_drive_for_image ()

    NautilusBurnDrive*  nautilus_burn_drive_monitor_get_drive_for_image
                                                            (NautilusBurnDriveMonitor *monitor);

Create a new `NAUTILUS_BURN_DRIVE_TYPE_FILE` NautilusBurnDrive.

`monitor` : | NautilusBurnDriveMonitor
Returns : | A new drive.

Since 2.16