summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2013-02-26 23:50:11 +0100
committerDaniel Carl <danielcarl@gmx.de>2013-02-27 00:11:32 +0100
commit057fff36432ee382ed688733ffa332907a4c5aef (patch)
tree4ed387b8eb37372cd9c3e2f73007f3e73a4d129b /src/main.h
parent1cd10e6bbe0c1ca5f3b1329bf7897335769103d4 (diff)
Allow to run user scripts on every page.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 0384050..eb6df36 100644
--- a/src/main.h
+++ b/src/main.h
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <string.h>
#include <webkit/webkit.h>
+#include <JavaScriptCore/JavaScript.h>
#ifdef HAS_GTK3
#include <gdk/gdkx.h>
#include <gtk/gtkx.h>
@@ -164,6 +165,7 @@ enum {
FILES_CONFIG = 0,
FILES_COOKIE,
FILES_CLOSED,
+ FILES_SCRIPT,
FILES_LAST
};
@@ -312,6 +314,7 @@ void vp_update_statusbar(void);
void vp_update_urlbar(const char* uri);
void vp_update_status_style(void);
void vp_echo(const MessageType type, gboolean hide, const char *error, ...);
+void vp_eval_script(WebKitWebFrame* frame, char* script, char** value, char** error);
gboolean vp_set_mode(Mode mode, gboolean clean);
void vp_set_widget_font(GtkWidget* widget, const VpColor* fg, const VpColor* bg, PangoFontDescription* font);
gboolean vp_load_uri(const Arg* arg);