[][src]Struct janus_plugin_sys::plugin::janus_plugin

#[repr(C)]pub struct janus_plugin {
    pub init: unsafe extern "C" fn(callback: *mut janus_callbacks, config_path: *const c_char) -> c_int,
    pub destroy: unsafe extern "C" fn(),
    pub get_api_compatibility: unsafe extern "C" fn() -> c_int,
    pub get_version: unsafe extern "C" fn() -> c_int,
    pub get_version_string: unsafe extern "C" fn() -> *const c_char,
    pub get_description: unsafe extern "C" fn() -> *const c_char,
    pub get_name: unsafe extern "C" fn() -> *const c_char,
    pub get_author: unsafe extern "C" fn() -> *const c_char,
    pub get_package: unsafe extern "C" fn() -> *const c_char,
    pub create_session: unsafe extern "C" fn(handle: *mut janus_plugin_session, error: *mut c_int),
    pub handle_message: unsafe extern "C" fn(handle: *mut janus_plugin_session, transaction: *mut c_char, message: *mut json_t, jsep: *mut json_t) -> *mut janus_plugin_result,
    pub handle_admin_message: unsafe extern "C" fn(message: *mut json_t) -> *mut json_t,
    pub setup_media: unsafe extern "C" fn(handle: *mut janus_plugin_session),
    pub incoming_rtp: unsafe extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_rtp),
    pub incoming_rtcp: unsafe extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_rtcp),
    pub incoming_data: unsafe extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_data),
    pub slow_link: unsafe extern "C" fn(handle: *mut janus_plugin_session, uplink: c_int, video: c_int),
    pub hangup_media: unsafe extern "C" fn(handle: *mut janus_plugin_session),
    pub destroy_session: unsafe extern "C" fn(handle: *mut janus_plugin_session, error: *mut c_int),
    pub query_session: unsafe extern "C" fn(handle: *mut janus_plugin_session) -> *mut json_t,
}

Fields

init: unsafe extern "C" fn(callback: *mut janus_callbacks, config_path: *const c_char) -> c_intdestroy: unsafe extern "C" fn()get_api_compatibility: unsafe extern "C" fn() -> c_intget_version: unsafe extern "C" fn() -> c_intget_version_string: unsafe extern "C" fn() -> *const c_charget_description: unsafe extern "C" fn() -> *const c_charget_name: unsafe extern "C" fn() -> *const c_charget_author: unsafe extern "C" fn() -> *const c_charget_package: unsafe extern "C" fn() -> *const c_charcreate_session: unsafe extern "C" fn(handle: *mut janus_plugin_session, error: *mut c_int)handle_message: unsafe extern "C" fn(handle: *mut janus_plugin_session, transaction: *mut c_char, message: *mut json_t, jsep: *mut json_t) -> *mut janus_plugin_resulthandle_admin_message: unsafe extern "C" fn(message: *mut json_t) -> *mut json_tsetup_media: unsafe extern "C" fn(handle: *mut janus_plugin_session)incoming_rtp: unsafe extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_rtp)incoming_rtcp: unsafe extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_rtcp)incoming_data: unsafe extern "C" fn(handle: *mut janus_plugin_session, packet: *mut janus_plugin_data)slow_link: unsafe extern "C" fn(handle: *mut janus_plugin_session, uplink: c_int, video: c_int)hangup_media: unsafe extern "C" fn(handle: *mut janus_plugin_session)destroy_session: unsafe extern "C" fn(handle: *mut janus_plugin_session, error: *mut c_int)query_session: unsafe extern "C" fn(handle: *mut janus_plugin_session) -> *mut json_t

Trait Implementations

impl Debug for janus_plugin[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.