Function attribute_count

Source
pub unsafe extern "C" fn attribute_count<T: PluginAPI<E>, E: PluginError + 'static>(
    plugin_data: *const PluginData,
    count: *mut size_t,
) -> c_int
Expand description

Returns the number of attributes of the plugin.

This function returns the number of attributes rather than a status code. If this function is provided with a null pointer as an argument, then zero will be returned.

§Safety

This function is unsafe because it dereferences a raw pointer.

§Arguments

  • plugin_data - A pointer to a PluginData struct
  • count - A pointer to a size_t that will contain the number of attributes