move channels.rs to libnotcurses-sys crate

This commit is contained in:
joseLuís 2020-08-08 17:49:12 +02:00
parent 2842ffb751
commit 590fbf4f1f
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#![allow(dead_code)] #![allow(dead_code)]
extern crate libnotcurses_sys as ffi; use crate as ffi;
// NOTE: There are several differences from the original functions in C: // NOTE: There are several differences from the original functions in C:
// //

View File

@ -2,6 +2,8 @@
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]
#![allow(non_snake_case)] #![allow(non_snake_case)]
mod channels;
include!(concat!(env!("OUT_DIR"), "/bindings.rs")); include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
pub fn ncplane_putstr(_n: *mut ncplane, _str: &str) -> i32 { pub fn ncplane_putstr(_n: *mut ncplane, _str: &str) -> i32 {

View File

@ -1,5 +1,3 @@
mod channels;
extern crate libnotcurses_sys as ffi; extern crate libnotcurses_sys as ffi;
pub fn getc_blocking(_n: *mut ffi::notcurses, _ni: &mut ffi::ncinput) -> u32 { pub fn getc_blocking(_n: *mut ffi::notcurses, _ni: &mut ffi::ncinput) -> u32 {