[][src]Struct tm_rs::ffi::tm_graph_interpreter_api

#[repr(C)]pub struct tm_graph_interpreter_api {
    pub create_graph_interpreter: Option<unsafe extern "C" fn(*mut tm_allocator_i) -> *mut tm_graph_interpreter_o>,
    pub destroy_graph_interpreter: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o)>,
    pub set_graph: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, *const tm_graph_interpreter_node_t, u32, u32, *mut u32, u32, *mut u32, u32)>,
    pub run_node_at_index: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u32)>,
    pub add_event_node: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u64, u32)>,
    pub trigger_event: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u64)>,
    pub trigger_wire: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u32)>,
    pub queue_wire: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u32, f32)>,
    pub tick_queue: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, f32)>,
    pub get_node_run_context: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u32) -> tm_graph_interpreter_context_t>,
    pub read_wire: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u32) -> tm_graph_interpreter_wire_content_t>,
    pub read_wires: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, *mut tm_graph_interpreter_wire_content_t, *const u32, u32)>,
    pub read_wires_indirect: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, *mut *mut tm_graph_interpreter_wire_content_t, *const u32, u32)>,
    pub write_wire: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u32, u32, u32) -> *mut c_void>,
    pub read_variable: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u64) -> tm_graph_interpreter_wire_content_t>,
    pub write_variable: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u64, u32, u32) -> *mut c_void>,
}

Fields

create_graph_interpreter: Option<unsafe extern "C" fn(*mut tm_allocator_i) -> *mut tm_graph_interpreter_o>destroy_graph_interpreter: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o)>set_graph: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, *const tm_graph_interpreter_node_t, u32, u32, *mut u32, u32, *mut u32, u32)>run_node_at_index: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u32)>add_event_node: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u64, u32)>trigger_event: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u64)>trigger_wire: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u32)>queue_wire: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u32, f32)>tick_queue: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, f32)>get_node_run_context: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u32) -> tm_graph_interpreter_context_t>read_wire: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u32) -> tm_graph_interpreter_wire_content_t>read_wires: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, *mut tm_graph_interpreter_wire_content_t, *const u32, u32)>read_wires_indirect: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, *mut *mut tm_graph_interpreter_wire_content_t, *const u32, u32)>write_wire: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u32, u32, u32) -> *mut c_void>read_variable: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u64) -> tm_graph_interpreter_wire_content_t>write_variable: Option<unsafe extern "C" fn(*mut tm_graph_interpreter_o, u64, u32, u32) -> *mut c_void>

Trait Implementations

impl Clone for tm_graph_interpreter_api[src]

impl Copy for tm_graph_interpreter_api[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.