[][src]Function flac_sys::FLAC__metadata_object_picture_is_legal

pub unsafe extern "C" fn FLAC__metadata_object_picture_is_legal(
    object: *const FLAC__StreamMetadata,
    violation: *mut *const c_char
) -> FLAC__bool

Check a PICTURE block to see if it conforms to the FLAC specification. See the format specification for limits on the contents of the PICTURE block.

\param object A pointer to existing PICTURE block to be checked. \param violation Address of a pointer to a string. If there is a violation, a pointer to a string explanation of the violation will be returned here. \a violation may be \c NULL if you don't need the returned string. Do not free the returned string; it will always point to static data. \assert \code object != NULL \endcode \code object->type == FLAC__METADATA_TYPE_PICTURE \endcode \retval FLAC__bool \c false if PICTURE block is illegal, else \c true.