declared interfaces and more wrappers

This commit is contained in:
neo
2026-08-25 17:55:57 +02:00
parent aeab2375c8
commit 61cfcf283f
9 changed files with 235 additions and 23 deletions
+13 -3
View File
@@ -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()
}
}