summaryrefslogtreecommitdiff
path: root/include/engine/state.h
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2023-07-28 14:32:58 +0000
committer0scar <qgt268@alumni.ku.dk>2023-07-28 18:26:17 +0000
commit4cb29fbc2d20f20e9d605796b137b4b70363113a (patch)
tree9b5929ff4d16a7a2472bafac48196e5ddfabc7dd /include/engine/state.h
parent5ee7f4b4b033de403f1861eedc942c7a5a0f31b6 (diff)
Implement hotloading
* This commit implements dltools.{c,h}: _A simple wrapper around libdl / dlfcn.h_ * Reload states when done initializing engine, if hotloading is enabled. * Adds general function types for state functions.
Diffstat (limited to 'include/engine/state.h')
-rw-r--r--include/engine/state.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/engine/state.h b/include/engine/state.h
index 402c701..cf486cc 100644
--- a/include/engine/state.h
+++ b/include/engine/state.h
@@ -20,4 +20,7 @@ void State_init(StateType type, memory *mem);
void State_free(StateType type, memory *mem);
StateType State_update(StateType type, memory *mem);
+/* Reloads shared object file associated with state */
+bool State_reload(StateType type);
+
#endif