[][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 struct
  • id - The id of the attribute
  • buffer - A buffer of bytes into which the attribute's name will be written
  • length - The length of the buffer