LMMS
Loading...
Searching...
No Matches
LV2_Lib_Descriptor Struct Reference

#include <lv2.h>

Public Attributes

LV2_Lib_Handle handle
uint32_t size
void(* cleanup )(LV2_Lib_Handle handle)
const LV2_Descriptor *(* get_plugin )(LV2_Lib_Handle handle, uint32_t index)

Detailed Description

Descriptor for a plugin library.

To access a plugin library, the host creates an LV2_Lib_Descriptor via the lv2_lib_descriptor() function in the shared object.

Member Data Documentation

◆ cleanup

void(* LV2_Lib_Descriptor::cleanup)(LV2_Lib_Handle handle)

Destroy this library descriptor and free all related resources.

◆ get_plugin

const LV2_Descriptor *(* LV2_Lib_Descriptor::get_plugin)(LV2_Lib_Handle handle, uint32_t index)

Plugin accessor.

Plugins are accessed by index using values from 0 upwards. Out of range indices MUST result in this function returning NULL, so the host can enumerate plugins by increasing index until NULL is returned.

◆ handle

LV2_Lib_Handle LV2_Lib_Descriptor::handle

Opaque library data which must be passed as the first parameter to all the methods of this struct.

◆ size

uint32_t LV2_Lib_Descriptor::size

The total size of this struct. This allows for this struct to be expanded in the future if necessary. This MUST be set by the library to sizeof(LV2_Lib_Descriptor). The host MUST NOT access any fields of this struct beyond get_plugin() unless this field indicates they are present.


The documentation for this struct was generated from the following files: