aboutsummaryrefslogtreecommitdiff
path: root/src/LuaRuntime.hpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-04-12 11:56:10 +0530
committerAkshay Nair <phenax5@gmail.com>2025-04-12 11:56:35 +0530
commitf3f109cd054888f857d51ca2b37b4123f3134069 (patch)
tree81250db8a30f85d34d3c101830a37e3535e77054 /src/LuaRuntime.hpp
parentc0ee5203201d4ddf4ed560f856cb0da958935fc6 (diff)
downloadnull-browser-f3f109cd054888f857d51ca2b37b4123f3134069.tar.gz
null-browser-f3f109cd054888f857d51ca2b37b4123f3134069.zip
Add configuration api
Diffstat (limited to 'src/LuaRuntime.hpp')
-rw-r--r--src/LuaRuntime.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/LuaRuntime.hpp b/src/LuaRuntime.hpp
index 64bb1f1..670c0ae 100644
--- a/src/LuaRuntime.hpp
+++ b/src/LuaRuntime.hpp
@@ -35,7 +35,7 @@ public:
}
void evaluate(const QString &code);
- void load_file(const QString &path);
+ void load_file_sync(const QString &path);
void stop_event_loop();
void start_event_loop();
@@ -54,6 +54,7 @@ signals:
void url_opened(QString url, OpenType open_type, WebViewId webview_id);
void webview_closed(WebViewId webview_id);
void webview_selected(WebViewId webview_id);
+ void config_updated(const QString &key, const QVariant &value);
protected:
LuaRuntime();
@@ -71,6 +72,8 @@ protected:
static int lua_view_current(lua_State *state);
static int lua_view_list(lua_State *state);
static int lua_view_select(lua_State *state);
+ static int lua_config_set(lua_State *state);
+ static int lua_config_get(lua_State *state);
private:
lua_State *state;