[−][src]Function kpal_plugin::set_attribute_value
pub extern "C" fn set_attribute_value<T: PluginAPI<E>, E: PluginError>(
peripheral: *mut Peripheral,
id: size_t,
value: *const Value
) -> c_int
Sets the value of an attribute.
This function returns a status code that indicates whether the operation succeeded and the cause of any possible errors.
Arguments
peripheral- A pointer to a peripheral structid- The id of the attributevalue- A pointer to a Value enum. The enum is provided by this function's caller and will be copied.