50 lines
954 B
C
50 lines
954 B
C
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <lv2.h>
|
|
#include <lv2/lv2plug.in/ns/extensions/ui/ui.h>
|
|
|
|
static LV2UI_Handle ptapui_instantiate(
|
|
const LV2UI_Descriptor *descriptor,
|
|
const char *plugin_uri,
|
|
const char *bundle_path,
|
|
LV2UI_Write_Function write_function,
|
|
LV2UI_Controller controller,
|
|
LV2UI_Widget *widget,
|
|
const LV2_Feature *const *host_features)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static void ptapui_cleanup(LV2UI_Handle ui)
|
|
{
|
|
}
|
|
|
|
static void ptapui_port_event(
|
|
LV2UI_Handle ui,
|
|
uint32_t port_index,
|
|
uint32_t buffer_size,
|
|
uint32_t format,
|
|
const void *buffer)
|
|
{
|
|
}
|
|
|
|
static const LV2UI_Descriptor s_lv2uidescriptor =
|
|
{
|
|
.URI = "urn:fuzzle:ptap#X11UI",
|
|
.instantiate = &ptapui_instantiate,
|
|
.cleanup = &ptapui_cleanup,
|
|
.port_event = &ptapui_port_event,
|
|
.extension_data = NULL,
|
|
};
|
|
|
|
const LV2UI_Descriptor *lv2ui_descriptor(uint32_t index)
|
|
{
|
|
if (index == 0) {
|
|
return &s_lv2uidescriptor;
|
|
}
|
|
|
|
return NULL;
|
|
}
|