aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/lua.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-03-20 23:35:53 +0100
committercbdev <cb@cbcdn.com>2020-03-20 23:35:53 +0100
commit03a75ea3b4e72f09843bc8b12f8bac84a2f27709 (patch)
tree178fe633ad4856b07be8132d53858d8ff638c89f /backends/lua.h
parent2d66d5cee9bf3ed5779f65d8a99b40ee5181bf30 (diff)
downloadmidimonster-03a75ea3b4e72f09843bc8b12f8bac84a2f27709.tar.gz
midimonster-03a75ea3b4e72f09843bc8b12f8bac84a2f27709.tar.bz2
midimonster-03a75ea3b4e72f09843bc8b12f8bac84a2f27709.zip
Restructure lua channel resolution
Diffstat (limited to 'backends/lua.h')
-rw-r--r--backends/lua.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/backends/lua.h b/backends/lua.h
index d8e720a..3c7568b 100644
--- a/backends/lua.h
+++ b/backends/lua.h
@@ -22,14 +22,18 @@ static int lua_shutdown(size_t n, instance** inst);
static uint32_t lua_interval();
#endif
+typedef struct /*_lua_channel*/ {
+ char* name;
+ int reference;
+ double in;
+ double out;
+} lua_channel_data;
+
typedef struct /*_lua_instance_data*/ {
size_t channels;
- char** channel_name;
- int* reference;
- double* input;
- double* output;
- lua_State* interpreter;
+ lua_channel_data* channel;
+ lua_State* interpreter;
char* default_handler;
} lua_instance_data;