1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#![allow(non_camel_case_types)] #![deny(missing_debug_implementations)] use std::os::raw::{c_char, c_int}; pub mod plugin; pub mod events; pub mod rtcp; pub mod sdp; #[repr(C)] #[derive(Debug)] pub struct janus_refcount { pub count: c_int, pub free: extern "C" fn(obj: *const janus_refcount), } extern "C" { pub static janus_log_timestamps: c_int; pub static janus_log_colors: c_int; pub static janus_log_level: c_int; pub fn janus_get_api_error(error: c_int) -> *const c_char; pub fn janus_vprintf(format: *const c_char, ...); pub static refcount_debug: c_int; }