mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-03-27 14:43:06 +00:00
14 lines
225 B
Rust
14 lines
225 B
Rust
|
|
use safer_ffi::prelude::*;
|
||
|
|
|
||
|
|
#[derive_ReprC]
|
||
|
|
#[repr(C)]
|
||
|
|
pub struct CResult<T: ReprC, Err: ReprC> {
|
||
|
|
pub ok: Option<T>,
|
||
|
|
pub err: Option<Err>,
|
||
|
|
}
|
||
|
|
|
||
|
|
#[ffi_export]
|
||
|
|
pub fn ffi_c_string_free(s: repr_c::String) {
|
||
|
|
drop(s);
|
||
|
|
}
|