diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-05-22 12:55:37 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-05-22 12:55:37 +0200 |
commit | a4a4e5126cfc7c5bee39c08403ea3a9b6d3f33dc (patch) | |
tree | 7e17e27913af7ff902e32f8aae56d132c5920fbd /src/core/wee-hook.h | |
parent | ec6f2c2e177eb99370a5dc58ce932aeff57f0648 (diff) | |
download | weechat-a4a4e5126cfc7c5bee39c08403ea3a9b6d3f33dc.zip |
Increase number of authorized calls to same command (recursive calls), from 1 to 5 (more than 5 is considered as looping)
Diffstat (limited to 'src/core/wee-hook.h')
-rw-r--r-- | src/core/wee-hook.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/wee-hook.h b/src/core/wee-hook.h index 7959f0232..22d7cf552 100644 --- a/src/core/wee-hook.h +++ b/src/core/wee-hook.h @@ -44,10 +44,15 @@ enum t_hook_type HOOK_NUM_TYPES, }; +/* max calls that can be done for a command (recursive calls) */ +#define HOOK_COMMAND_MAX_CALLS 5 + +/* flags for fd hooks */ #define HOOK_FD_FLAG_READ 1 #define HOOK_FD_FLAG_WRITE 2 #define HOOK_FD_FLAG_EXCEPTION 4 +/* macros to access hook specific data */ #define HOOK_COMMAND(hook, var) (((struct t_hook_command *)hook->hook_data)->var) #define HOOK_TIMER(hook, var) (((struct t_hook_timer *)hook->hook_data)->var) #define HOOK_FD(hook, var) (((struct t_hook_fd *)hook->hook_data)->var) |