summaryrefslogtreecommitdiff
path: root/src/scripts.h
diff options
context:
space:
mode:
authorportix <none@none>2013-02-21 18:58:14 +0100
committerportix <none@none>2013-02-21 18:58:14 +0100
commit085ccf8c2f3e1f961e73bfe06dd109656b8c8c11 (patch)
tree160e1b38f6012b59ccfed4b9fe16e3a0979715a0 /src/scripts.h
parent6450b18eed2fb7793cc946980d116dce43363d84 (diff)
downloaddwb-085ccf8c2f3e1f961e73bfe06dd109656b8c8c11.zip
Use read-write lock instead of mutex to lock the global context; reload userscripts that use the javascript api
Diffstat (limited to 'src/scripts.h')
-rw-r--r--src/scripts.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scripts.h b/src/scripts.h
index b4a55b2d..140b4527 100644
--- a/src/scripts.h
+++ b/src/scripts.h
@@ -66,12 +66,13 @@ void scripts_create_tab(GList *gl);
void scripts_remove_tab(JSObjectRef );
void scripts_end(void);
void scripts_init_script(const char *, const char *);
-void scripts_init(gboolean);
+gboolean scripts_init(gboolean);
void scripts_reinit();
void scripts_unbind(JSObjectRef);
DwbStatus scripts_eval_key(KeyMap *m, Arg *arg);
gboolean scripts_execute_one(const char *script);
void scripts_completion_activate(void);
+void scripts_reapply(void);
#define EMIT_SCRIPT(sig) ((dwb.misc.script_signals & (1<<SCRIPTS_SIG_##sig)))
#define SCRIPTS_EMIT_RETURN(signal, json, val) G_STMT_START \