aboutsummaryrefslogtreecommitdiff
path: root/widgets.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets.c')
-rw-r--r--widgets.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/widgets.c b/widgets.c
new file mode 100644
index 0000000..78cd22f
--- /dev/null
+++ b/widgets.c
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2018 Hanspeter Portner (dev@open-music-kontrollers.ch)
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the Artistic License 2.0 as published by
+ * The Perl Foundation.
+ *
+ * This source is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Artistic License 2.0 for more details.
+ *
+ * You should have received a copy of the Artistic License 2.0
+ * along the source as a COPYING file. If not, obtain it from
+ * http://www.perlfoundation.org/artistic_license_2_0.
+ */
+
+#include <widgets.h>
+
+LV2_SYMBOL_EXPORT const LV2_Descriptor*
+lv2_descriptor(uint32_t index)
+{
+ switch(index)
+ {
+ case 0:
+ return &widgets_xy_pad;
+
+ default:
+ return NULL;
+ }
+}