Function panda_sys::object_property_add_enum
source · pub unsafe extern "C" fn object_property_add_enum(
obj: *mut Object,
name: *const c_char,
typename: *const c_char,
strings: *const *const c_char,
get: Option<unsafe extern "C" fn(arg1: *mut Object, arg2: *mut *mut Error) -> c_int>,
set: Option<unsafe extern "C" fn(arg1: *mut Object, arg2: c_int, arg3: *mut *mut Error)>,
errp: *mut *mut Error
)
Expand description
object_property_add_enum: @obj: the object to add a property to @name: the name of the property @typename: the name of the enum data type @get: the getter or %NULL if the property is write-only. @set: the setter or %NULL if the property is read-only @errp: if an error occurs, a pointer to an area to store the error
Add an enum property using getters/setters. This function will add a property of type ‘@typename’.