Function ffurl_get_protocols

Source
pub unsafe extern "C" fn ffurl_get_protocols(
    whitelist: *const c_char,
    blacklist: *const c_char,
) -> *mut *const URLProtocol
Expand description

Construct a list of protocols matching a given whitelist and/or blacklist.

@param whitelist a comma-separated list of allowed protocol names or NULL. If this is a non-empty string, only protocols in this list will be included. @param blacklist a comma-separated list of forbidden protocol names or NULL. If this is a non-empty string, all protocols in this list will be excluded.

@return a NULL-terminated array of matching protocols. The array must be freed by the caller.