[][src]Function ffmpeg_dev::sys::ff_url_join

pub unsafe extern "C" fn ff_url_join(
    str: *mut c_char,
    size: c_int,
    proto: *const c_char,
    authorization: *const c_char,
    hostname: *const c_char,
    port: c_int,
    fmt: *const c_char,
     ...
) -> c_int

Assemble a URL string from components. This is the reverse operation of av_url_split.

Note, this requires networking to be initialized, so the caller must ensure ff_network_init has been called.

@see av_url_split

@param str the buffer to fill with the url @param size the size of the str buffer @param proto the protocol identifier, if null, the separator after the identifier is left out, too @param authorization an optional authorization string, may be null. An empty string is treated the same as a null string. @param hostname the host name string @param port the port number, left out from the string if negative @param fmt a generic format string for everything to add after the host/port, may be null @return the number of characters written to the destination buffer