declared interfaces and more wrappers
This commit is contained in:
+13
-3
@@ -1,11 +1,21 @@
|
||||
// SPDX: GPL-2.0-only
|
||||
|
||||
#![feature(c_variadic)]
|
||||
|
||||
pub(crate) mod ffi;
|
||||
|
||||
// public api
|
||||
pub mod array;
|
||||
pub mod client;
|
||||
pub mod display;
|
||||
pub mod global;
|
||||
pub mod global;
|
||||
pub mod interface;
|
||||
pub mod list;
|
||||
pub mod resource;
|
||||
|
||||
pub(crate) trait Wrapper {
|
||||
type T;
|
||||
|
||||
fn get_raw(&self) -> std::ptr::NonNull<Self::T>;
|
||||
fn as_raw_ptr(&self) -> *mut Self::T {
|
||||
self.get_raw().as_ptr()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user