Type Alias simics_api_sys::struct_member_t
source · pub type struct_member_t = struct_member;
Expand description
struct member information
Aliased Type§
struct struct_member_t {
pub name: *const i8,
pub set: Option<unsafe extern "C" fn(_: *mut c_void, _: *const struct_member, _: *mut _object) -> i32>,
pub get: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut conf_object, _: *const struct_member) -> *mut _object>,
pub ofs: usize,
pub type_: *const field_type_t,
}
Fields§
§name: *const i8
§set: Option<unsafe extern "C" fn(_: *mut c_void, _: *const struct_member, _: *mut _object) -> i32>
set this member to a Python value: 0 on success, -1 on error
get: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut conf_object, _: *const struct_member) -> *mut _object>
retrieve this member as a Python value; object is only used for interfaces
ofs: usize
member byte offset in struct
type_: *const field_type_t