summaryrefslogtreecommitdiff
path: root/src/lua/include/bridge.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/include/bridge.hpp')
-rw-r--r--src/lua/include/bridge.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lua/include/bridge.hpp b/src/lua/include/bridge.hpp
new file mode 100644
index 00000000..059d0604
--- /dev/null
+++ b/src/lua/include/bridge.hpp
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2023 jacqueline <me@jacqueline.id.au>
+ *
+ * SPDX-License-Identifier: GPL-3.0-only
+ */
+
+#pragma once
+
+#include <memory>
+#include <string>
+
+#include "lua.hpp"
+#include "lvgl.h"
+#include "service_locator.hpp"
+
+namespace lua {
+
+class Bridge {
+ public:
+ Bridge(system_fsm::ServiceLocator&, lua_State& s);
+
+ system_fsm::ServiceLocator& services() { return services_; }
+
+ private:
+ system_fsm::ServiceLocator& services_;
+ lua_State& state_;
+};
+
+} // namespace lua