XPLMGetDatai_f

Type Alias XPLMGetDatai_f 

Source
pub type XPLMGetDatai_f = Option<unsafe extern "C" fn(inRefcon: *mut c_void) -> c_int>;
Expand description

XPLMGetDatai_f

Data provider function pointers.

These define the function pointers you provide to get or set data. Note that you are passed a generic pointer for each one. This is the same pointer you pass in your register routine; you can use it to locate plugin variables, etc.

The semantics of your callbacks are the same as the dataref accessors above

  • basically routines like XPLMGetDatai are just pass-throughs from a caller to your plugin. Be particularly mindful in implementing array dataref read-write accessors; you are responsible for avoiding overruns, supporting offset read/writes, and handling a read with a NULL buffer.

Aliased Type§

pub enum XPLMGetDatai_f {
    None,
    Some(unsafe extern "C" fn(*mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void) -> i32)

Some value of type T.