[−][src]Function kpal_plugin::attribute_name
pub unsafe extern "C" fn attribute_name<T: PluginAPI<E>, E: PluginError + 'static>(
plugin_data: *const PluginData,
id: size_t,
buffer: *mut c_uchar,
length: size_t
) -> c_int
Writes the name of an attribute to a buffer that is provided by the caller.
This function returns a status code that indicates whether the operation succeeded and the cause of any possible errors.
Safety
This function is unsafe because it dereferences a raw pointer.
Arguments
plugin_data
- A pointer to a PluginData structid
- The id of the attributebuffer
- A buffer of bytes into which the attribute's name will be writtenlength
- The length of the buffer