pub unsafe extern "C" fn fz_recognize_document_stream_and_dir_content(
ctx: *mut fz_context,
stream: *mut fz_stream,
dir: *mut fz_archive,
magic: *const c_char,
) -> *const fz_document_handler
Expand description
Given a magic find a document handler that can handle a
document of this type.
stream
: the file stream to sample. May be NULL
if the document is
a directory.
dir
: an fz_archive
representing the directory from which the
stream was opened (or NULL
).
magic
: Can be a filename extension (including initial period) or
a mimetype.