aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/lua_state.hh18
-rw-r--r--include/vars.hh6
2 files changed, 21 insertions, 3 deletions
diff --git a/include/lua_state.hh b/include/lua_state.hh
new file mode 100644
index 0000000..a8dfed8
--- /dev/null
+++ b/include/lua_state.hh
@@ -0,0 +1,18 @@
+#ifndef LUA_STATE
+#define LUA_STATE
+
+extern "C" {
+#include <luajit-2.1/lua.h>
+#include <luajit-2.1/lauxlib.h>
+#include <luajit-2.1/lualib.h>
+}
+
+void init_lua_state();
+void free_lua_state();
+lua_State* get_lua_state();
+
+void cache_install_directories();
+void cache_repos();
+void cache_build_systems();
+
+#endif \ No newline at end of file
diff --git a/include/vars.hh b/include/vars.hh
index 71045ee..b70615b 100644
--- a/include/vars.hh
+++ b/include/vars.hh
@@ -3,10 +3,10 @@
#include <string>
#include <filesystem>
-#include <map>
+#include <unordered_map>
-extern std::map<std::string, std::string> repos;
-extern std::map<std::string, std::string> install_directories;
+extern std::unordered_map<std::string, std::string> repos;
+extern std::unordered_map<std::string, std::string> install_directories;
extern bool is_symlink_install;
extern bool is_verbose;