Function switch_channel_get_variable_buf

Source
pub unsafe extern "C" fn switch_channel_get_variable_buf(
    channel: *mut switch_channel_t,
    varname: *const c_char,
    buf: *mut c_char,
    buflen: switch_size_t,
) -> switch_status_t
Expand description

\brief Retrieve a variable from a given channel to a pre-allocated buffer without using a memory pool. \param channel channel to retrieve variable from \param varname the name of the variable \param buf a pre allocated buffer to put the value to \param buflen size of the buffer \return SWITCH_STATUS_SUCCESS if the value was copied to the buffer and it is not NULL, SWITCH_STATUS_FALSE otherwise.