Function panda_sys::object_property_add_str [−][src]
pub unsafe extern "C" fn object_property_add_str(
obj: *mut Object,
name: *const c_char,
get: Option<unsafe extern "C" fn(arg1: *mut Object, arg2: *mut *mut Error) -> *mut c_char>,
set: Option<unsafe extern "C" fn(arg1: *mut Object, arg2: *const c_char, arg3: *mut *mut Error)>,
errp: *mut *mut Error
)
Expand description
object_property_add_str: @obj: the object to add a property to @name: the name of the property @get: the getter or NULL if the property is write-only. This function must return a string to be freed by g_free(). @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 a string property using getters/setters. This function will add a property of type ‘string’.