split out ffi bindings into shenlong-sys crate

This commit is contained in:
Adrian Malacoda
2019-02-11 02:56:23 -06:00
parent 81a9db0b8d
commit ab0c19fcc2
9 changed files with 504 additions and 26 deletions

View File

@@ -1,11 +1,5 @@
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
extern crate c_str_macro;
use c_str_macro::c_str;
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
use shenlong_sys::*;
extern "C" fn shenlong_init(plugin: *mut GeanyPlugin, pdata: gpointer) -> gboolean {
println!("shenlong init");