1
0

removed export functions

This commit is contained in:
Maxim Kozlov
2023-08-09 17:20:34 +06:00
parent 9764a2c01d
commit 8c1d47e8e1
2 changed files with 0 additions and 45 deletions

View File

@ -1,44 +0,0 @@
use std::{
ffi::{c_int, c_long, c_void},
sync::atomic::{AtomicI32, Ordering},
};
use utf16_lit::utf16_null;
use crate::ffi::{destroy_component, AttachType};
pub static mut PLATFORM_CAPABILITIES: AtomicI32 = AtomicI32::new(-1);
#[allow(non_snake_case)]
#[no_mangle]
pub unsafe extern "C" fn GetClassObject(
name: *const u16,
component: *mut *mut c_void,
) -> c_long {
0
}
#[allow(non_snake_case)]
#[no_mangle]
pub unsafe extern "C" fn DestroyObject(component: *mut *mut c_void) -> c_long {
destroy_component(component)
}
#[allow(non_snake_case)]
#[no_mangle]
pub extern "C" fn GetClassNames() -> *const u16 {
// small strings for performance
utf16_null!("1").as_ptr()
}
#[allow(non_snake_case)]
#[no_mangle]
pub unsafe extern "C" fn SetPlatformCapabilities(capabilities: c_int) -> c_int {
PLATFORM_CAPABILITIES.store(capabilities, Ordering::Relaxed);
3
}
#[allow(non_snake_case)]
#[no_mangle]
pub extern "C" fn GetAttachType() -> AttachType {
AttachType::Any
}

View File

@ -1,3 +1,2 @@
pub mod export_functions;
pub mod ffi;
pub mod interface;