use std::ffi::CStr; use giterated_models::{object::GiteratedObject, operation::GiteratedOperation}; use crate::{ result::{FfiError, FfiResult}, value_ex::{FfiValueRefUntyped, FfiValueUntyped}, vtable::{ operation::{IntoOperationVTable, Operation}, IntoObjectVTable, IntoSettingVTable, IntoValueVTable, Object, Setting, }, FfiSlice, FfiSliceRef, FfiValueRef, }; impl IntoObjectVTable for T where T: GiteratedObject, { fn object_kind() -> &'static CStr { todo!() } unsafe extern "C" fn to_str(this: FfiValueRef) -> FfiSlice { todo!() } unsafe extern "C" fn from_str(from: FfiSliceRef) -> FfiResult { todo!() } unsafe extern "C" fn home_uri(this: FfiValueRef) -> FfiSlice { todo!() } } impl IntoOperationVTable for T where T: GiteratedOperation, O: GiteratedObject, { fn operation_kind() -> &'static CStr { todo!() } unsafe extern "C" fn operation_serialize( this: FfiValueRef, ) -> FfiResult, FfiError> { todo!() } unsafe extern "C" fn operation_deserialize( buffer: FfiSliceRef<[u8]>, ) -> FfiResult { todo!() } unsafe extern "C" fn success_serialize( success: FfiValueRefUntyped, ) -> FfiResult, FfiError> { todo!() } unsafe extern "C" fn success_deserialize( buffer: FfiSliceRef<[u8]>, ) -> FfiResult { todo!() } unsafe extern "C" fn failure_serialize( failure: FfiValueRefUntyped, ) -> FfiResult, FfiError> { todo!() } unsafe extern "C" fn failure_deserialize( buffer: FfiSliceRef<[u8]>, ) -> FfiResult { todo!() } } impl IntoValueVTable for T { unsafe extern "C" fn serialize( buffer: FfiSliceRef<[u8]>, ) -> FfiResult { todo!() } unsafe extern "C" fn deserialize( this: crate::vtable::Value, ) -> FfiResult, FfiError> { todo!() } } impl IntoSettingVTable for T { unsafe extern "C" fn serialize(this: Setting) -> FfiResult, FfiError> { todo!() } unsafe extern "C" fn deserialize(buffer: FfiSliceRef<[u8]>) -> FfiResult { todo!() } }