[][src]Function kpal_plugin::attribute_ids

pub unsafe extern "C" fn attribute_ids<T: PluginAPI<E>, E: PluginError + 'static>(
    plugin_data: *const PluginData,
    buffer: *mut size_t,
    length: size_t
) -> c_int

Writes the plugin's attribute IDs 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. It is recommended to check the status code returned by this function before reading the contents of the buffer.

Safety

This function is unsafe because it dereferences a raw pointer.

Arguments

  • plugin_data - A pointer to a PluginData struct
  • buffer - A pointer to a string of size_t's into which the attribute IDs will be written
  • length - The length of the buffer