[][src]Function flac_sys::FLAC__metadata_get_cuesheet

pub unsafe extern "C" fn FLAC__metadata_get_cuesheet(
    filename: *const c_char,
    cuesheet: *mut *mut FLAC__StreamMetadata
) -> FLAC__bool

Read the CUESHEET metadata block of the given FLAC file. This function will try to skip any ID3v2 tag at the head of the file.

\param filename The path to the FLAC file to read. \param cuesheet The address where the returned pointer will be stored. The \a cuesheet object must be deleted by the caller using FLAC__metadata_object_delete(). \assert \code filename != NULL \endcode \code cuesheet != NULL \endcode \retval FLAC__bool \c true if a valid CUESHEET block was read from \a filename, and \a *cuesheet will be set to the address of the metadata structure. Returns \c false if there was a memory allocation error, a file decoder error, or the file contained no CUESHEET block, and \a *cuesheet will be set to \c NULL.