cr_sys/
lib.rs

1#![allow(non_upper_case_globals)]
2#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4
5include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
6
7impl cr_plugin {
8    pub fn new() -> cr_plugin {
9        cr_plugin {
10            p: std::ptr::null_mut(),
11            userdata: std::ptr::null_mut(),
12            version: 0,
13            failure: cr_failure::CR_NONE,
14        }
15    }
16}
17
18#[cfg(not(guest))]
19pub unsafe fn cr_plugin_update(ctx: *mut cr_plugin, reload_check: bool) -> ::std::os::raw::c_int {
20    rust_cr_plugin_update_fix(ctx, reload_check)
21}