diff options
| author | dacctal <dacctal@symlinx.net> | 2026-05-24 10:23:38 +0000 |
|---|---|---|
| committer | dacctal <dacctal@symlinx.net> | 2026-05-24 10:23:38 +0000 |
| commit | aa0d78815004ae6b0c4a42b0e024f5c4ef555ae2 (patch) | |
| tree | 62f97b4c5acfdb98003568466f878fbd3d6b9dfb /include/lua_state.hh | |
| parent | 83d471f2c1d1b1fa6be51f41e4f1c36ab19d7094 (diff) | |
c rewrite
Diffstat (limited to 'include/lua_state.hh')
| -rw-r--r-- | include/lua_state.hh | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/include/lua_state.hh b/include/lua_state.hh deleted file mode 100644 index 0261e13..0000000 --- a/include/lua_state.hh +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef LUA_STATE -#define LUA_STATE - -#include <unordered_map> -#include <string> -extern "C" { -#include <luajit-2.1/lua.h> -#include <luajit-2.1/lauxlib.h> -#include <luajit-2.1/lualib.h> -} - -typedef struct { - std::string key; - std::string value; -} url; - -typedef struct { - std::string url; - std::string version; -} dependency; - -typedef struct { - url source; - std::unordered_map<std::string, dependency> dependencies; - int build; - int pre_install; - int install; - int post_install; -} repo; - -extern std::unordered_map<std::string, std::string> cached_install_directories; -extern std::unordered_map<std::string, repo> cached_repos; -extern std::unordered_map<std::string, int> cached_build_systems; - - -void push_lua_path(lua_State *L, const char *new_path); -void init_lua_state(); -void free_lua_state(); -lua_State* get_lua_state(); - -void cache_install_directories(); -bool repo_build(const char* repoository); -bool bldit(const char* target); -bool config_build(const char* path); -void cache_repos(); -void cache_build_systems(); - -#endif
\ No newline at end of file |
