LV2 Toolkit  1.2.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
EventRef< Required >::I< Derived > Struct Template Reference
Collaboration diagram for EventRef< Required >::I< Derived >:
Collaboration graph
[legend]

Public Types

typedef I< Derived > Mixin
 

Public Member Functions

bool check_ok ()
 

Static Public Member Functions

static void map_feature_handlers (FeatureHandlerMap &hmap)
 
static void handle_feature (void *instance, void *data)
 

Protected Member Functions

uint32_t event_ref (LV2_Event *event)
 
uint32_t event_unref (LV2_Event *event)
 

Protected Attributes

LV2_Event_Callback_Data m_callback_data
 
uint32_t(* m_ref_func )(LV2_Event_Callback_Data, LV2_Event *)
 
uint32_t(* m_unref_func )(LV2_Event_Callback_Data, LV2_Event *)
 

Member Function Documentation

uint32_t event_ref ( LV2_Event *  event)
inlineprotected

This should be called by the plugin for any event of type 0 if it creates an additional copy of it, either by saving more than one copy internally, passing more than one copy through to an output port, or a combination of those. It must be called once for each additional copy of the event. Note that you must not call this function if you just save one copy of the event, or just passes one copy through to an output port. param event The event, as returned by lv2_event_get().

uint32_t event_unref ( LV2_Event *  event)
inlineprotected

This should be called by the plugin for any event of type 0, unless it keeps a copy of it or passes it through to an event output port. param event The event, as returned by lv2_event_get().


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