pub unsafe extern "C" fn object_property_get_enum(
obj: *mut Object,
name: *const i8,
typename: *const i8,
errp: *mut *mut Error,
) -> i32Expand description
object_property_get_enum: @obj: the object @name: the name of the property @typename: the name of the enum data type @errp: returns an error if this function fails
Returns: the value of the property, converted to an integer, or undefined if an error occurs (including when the property value is not an enum).