aboutsummaryrefslogtreecommitdiff
path: root/src/event.h
diff options
context:
space:
mode:
authorLudvig Gunne Lindström <ludviggunnelindstrom@gmail.com>2026-07-17 11:42:57 +0200
committerLudvig Gunne Lindström <ludviggunnelindstrom@gmail.com>2026-11-08 14:05:19 +0100
commitfd27bacdd9c97f696938b12d2a437da4e514c26f (patch)
tree2d676bb280b35420a2c105676b0e66fe5b91958d /src/event.h
downloadmelisma-fd27bacdd9c97f696938b12d2a437da4e514c26f.tar.gz
Diffstat (limited to 'src/event.h')
-rw-r--r--src/event.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/event.h b/src/event.h
new file mode 100644
index 0000000..dd80d80
--- /dev/null
+++ b/src/event.h
@@ -0,0 +1,32 @@
+/*
+ * melisma - extensible and scriptable audio engine
+ * Copyright (C) 2026 Ludvig Gunne Lindström
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+#ifndef EVENT_H_INCLUDED
+#define EVENT_H_INCLUDED
+
+#include <lua.h>
+
+#include "melisma.h"
+
+#define NO_EVENT ((ml_event_id) -1)
+
+void init_events(lua_State *s);
+ml_event_id next_event(unsigned long tmax, unsigned long *t);
+void dispatch_event(ml_event_id id);
+
+#endif