[][src]Function discid_sys::discid_read

pub unsafe extern "C" fn discid_read(
    d: *mut DiscId,
    device: *const c_char
) -> c_int

Read all supported features of the disc in the given CD-ROM/DVD-ROM drive.

This function reads the disc in the drive specified by the given device identifier. If the device is NULL, the default drive, as returned by discid_get_default_device() is used.

If you do not require all features provided by libdiscid, such as MCN or ISRC reading, you should consider using discid_read_sparse() instead of discid_read() for performance reasons.

On error, this function returns false and sets the error message which you can access using discid_get_error_msg(). In this case, the other functions won't return meaningful values and should not be used.

This function may be used multiple times with the same DiscId object.

@param d a DiscId object created by discid_new() @param device an operating system dependent device identifier, or NULL @return true if successful, or false on error.