Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ttl:
- @prefix uiext: <http://lv2plug.in/ns/extensions/ui#> .
- <http://drumgizmo.org/lv2-gui>
- a uiext:X11UI ;
- lv2:requiredFeature uiext:idleInterface ;
- lv2:extensionData uiext:idleInterface ;
- uiext:binary <drumgizmo.so> .
- code:
- static int idle(LV2UI_Handle handle)
- {
- printf("----------- %s\n", __PRETTY_FUNCTION__);
- struct DG_GUI* dggui = (struct DG_GUI*)handle;
- if(dggui && dggui->gui)
- {
- dggui->gui->processEvents();
- }
- return 0;
- }
- static const LV2UI_Idle_Interface idle_iface = { idle };
- static const void* ui_extension_data(const char* uri)
- {
- printf("----------- %s : %s\n", __PRETTY_FUNCTION__, uri);
- if(!strcmp(uri, LV2_UI__idleInterface))
- {
- printf("idle_iface\n");
- return &idle_iface;
- }
- return NULL;
- }
- #ifdef __cplusplus
- extern "C" {
- #endif
- static LV2UI_Descriptor descriptor = {
- DRUMGIZMO_UI_URI,
- ui_instantiate,
- ui_cleanup,
- ui_port_event,
- ui_extension_data
- };
- const LV2UI_Descriptor *lv2ui_descriptor(uint32_t index)
- {
- printf("----------- %s\n", __PRETTY_FUNCTION__);
- if(index == 0) return &descriptor;
- return NULL;
- }
- #ifdef __cplusplus
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment