aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripting.h
diff options
context:
space:
mode:
authornathansmith117 <nathansmith117@sdf.org>2025-02-04 11:29:07 +0000
committernathansmith117 <nathansmith117@sdf.org>2025-02-04 11:29:07 +0000
commitfe9b718f8978cfd792f7303214b2dd45172b8d4b (patch)
tree8efd867eae12ad5d55d29e964272974ee3d71b18 /src/scripting.h
parentfb7ccc0c046ed80fdac2e829b8c367841600e211 (diff)
downloadsldj-fe9b718f8978cfd792f7303214b2dd45172b8d4b.tar.gz
sldj-fe9b718f8978cfd792f7303214b2dd45172b8d4b.tar.bz2
sldj-fe9b718f8978cfd792f7303214b2dd45172b8d4b.zip
Working on script context
Diffstat (limited to 'src/scripting.h')
-rw-r--r--src/scripting.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scripting.h b/src/scripting.h
index fab64b2..2a7220a 100644
--- a/src/scripting.h
+++ b/src/scripting.h
@@ -11,16 +11,19 @@
#include <libtcc.h>
#include "sldjConfig.h"
+#include "libsldj/util.h"
#ifndef SCRIPTING_H
#define SCRIPTING_H
typedef Color (*LineScanner)(uint16_t x, uint16_t y, uint32_t frameNumber);
+typedef void (*LoadContext)(SldjContext context);
typedef struct SldjScripting {
TCCState* state;
LineScanner lineScanner;
+ LoadContext loadContext;
char* fileBuf;
size_t fileSize;