Type Alias ul_next_sys::ULFileSystemGetFileMimeTypeCallback
source · pub type ULFileSystemGetFileMimeTypeCallback = Option<unsafe extern "C" fn(path: ULString) -> ULString>;
Expand description
Get the mime-type of the file (eg “text/html”).
This is usually determined by analyzing the file extension.
If a mime-type cannot be determined, you should return “application/unknown” for this value.
The library will consume the result and call ulDestroyString() after this call returns.
Aliased Type§
enum ULFileSystemGetFileMimeTypeCallback {
None,
Some(unsafe extern "C" fn(_: *mut C_String) -> *mut C_String),
}