janus_plugin_sys/
lib.rs

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