[][src]Function lv2_sys::lv2_lib_descriptor

pub unsafe extern "C" fn lv2_lib_descriptor(
    bundle_path: *const c_char,
    features: *const *const LV2_Feature
) -> *const LV2_Lib_Descriptor

Prototype for library accessor function.

This is the more advanced discovery API, which allows plugin libraries to access their bundles during discovery, which makes it possible for plugins to be dynamically defined by files in their bundle. This API also has an explicit cleanup function, removing any need for non-portable shared library destructors. Simple plugins that do not require these features may use lv2_descriptor() instead.

This is the entry point for a plugin library. Hosts load this symbol from the library and call this function to obtain a library descriptor which can be used to access all the contained plugins. The returned object must not be destroyed (using LV2_Lib_Descriptor::cleanup()) until all plugins loaded from that library have been destroyed.