summaryrefslogtreecommitdiff
path: root/src/lua/include/bridge.hpp
blob: 059d0604f6c8cc270ab67c02e460a33dfa63d542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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