diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-08-25 13:35:50 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-08-25 13:35:50 +0200 |
commit | ff4596e45ca9bff5995f912efb1f49d22823c82f (patch) | |
tree | 8f0b81ed60016c5a98a3ce51058a09b588e78976 /src/core/hook/wee-hook-hsignal.c | |
parent | cc2bb4b8cf36c7b454f5219cff5a6113e3a02cd4 (diff) | |
download | weechat-ff4596e45ca9bff5995f912efb1f49d22823c82f.zip |
core: add option `callbacks` in command `/debug`
Diffstat (limited to 'src/core/hook/wee-hook-hsignal.c')
-rw-r--r-- | src/core/hook/wee-hook-hsignal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hook/wee-hook-hsignal.c b/src/core/hook/wee-hook-hsignal.c index 1ed01f8b5..f849e36b4 100644 --- a/src/core/hook/wee-hook-hsignal.c +++ b/src/core/hook/wee-hook-hsignal.c @@ -129,6 +129,7 @@ int hook_hsignal_send (const char *signal, struct t_hashtable *hashtable) { struct t_hook *ptr_hook, *next_hook; + struct t_hook_exec_cb hook_exec_cb; int rc; rc = WEECHAT_RC_OK; @@ -144,13 +145,13 @@ hook_hsignal_send (const char *signal, struct t_hashtable *hashtable) && !ptr_hook->running && (hook_hsignal_match (signal, ptr_hook))) { - ptr_hook->running = 1; + hook_callback_start (ptr_hook, &hook_exec_cb); rc = (HOOK_HSIGNAL(ptr_hook, callback)) (ptr_hook->callback_pointer, ptr_hook->callback_data, signal, hashtable); - ptr_hook->running = 0; + hook_callback_end (ptr_hook, &hook_exec_cb); if (rc == WEECHAT_RC_OK_EAT) break; |