summaryrefslogtreecommitdiff
path: root/src/core/wee-hook.c
AgeCommit message (Collapse)Author
2018-08-14core: split wee-hook.c into multiple sourcesSébastien Helleu
2018-08-12api: add function hook_lineSébastien Helleu
2018-08-12core: fix check of tags in linesSébastien Helleu
All changes: - fix check of tags in lines: check lines without tags, fix check of tags with negation ("!tag") - add string functions string_split_tags and string_free_split_tags - add tests on function gui_line_match_tags
2018-03-11Revert "core: remove colors from prefix/message only when needed in ↵Sébastien Helleu
hook_print_exec" This reverts commit bfc579cb3354cb47a224c8fa55b6a2e5684c7ab9.
2018-01-07core: fix some stylesSébastien Helleu
2018-01-05core: update copyright datesSébastien Helleu
2017-11-04core: remove colors from prefix/message only when needed in hook_print_execSébastien Helleu
2017-11-04core: add missing includes of stdio.hSébastien Helleu
2017-09-23core, plugins: check return code of strftime functionSébastien Helleu
2017-08-12core: fix cast of time_t (to "long long" instead of "long") (closes #1051)Sébastien Helleu
2017-06-25core: limit hook_command_run to the exact given command (when no "*" are in ↵Sébastien Helleu
command hook)
2017-01-01core: update copyright datesSébastien Helleu
2016-12-13core, xfer: display more information on fork errors (issue #573)Sébastien Helleu
2016-11-29core: add optional arguments in completion template, sent to the callbackSébastien Helleu
2016-08-22core: fix warnings about unused variablesSébastien Helleu
2016-08-19api: fix connection to servers with hook_connect() on Windows 10 with ↵Sébastien Helleu
Windows subsystem for Linux (issue #770) The test on socketpair() function is now made when hooks are initialized (instead of doing the test at compilation time).
2016-04-23api: add support of functions in hook_processSébastien Helleu
2016-03-21core: add pointer in some callbacks (closes #406)Sébastien Helleu
This pointer is the first argument received by callbacks, and the existing argument "data" is now automatically freed by WeeChat when the object containing the callback is removed. With this new pointer, the linked list of callbacks in scripts has been removed. This will improve speed of scripts (using a lot of hooks), reduce memory used by scripts and reduce time to unload scripts. Following functions are affected in the C API: * exec_on_files * config_new * config_new_section * config_new_option * hook_command * hook_command_run * hook_timer * hook_fd * hook_process * hook_process_hashtable * hook_connect * hook_print * hook_signal * hook_hsignal * hook_config * hook_completion * hook_modifier * hook_info * hook_info_hashtable * hook_infolist * hook_hdata * hook_focus * unhook_all_plugin * buffer_new * bar_item_new * upgrade_new * upgrade_read
2016-03-06core: remove plugin pointer in hooks debug messagesSébastien Helleu
2016-01-01core: update copyright datesSébastien Helleu
2015-07-18core: fix crash if a file descriptor used in hook_fd() is too high (> 1024 ↵Sébastien Helleu
on Linux/BSD) (closes #465) The calls to select() are replaced by poll(), which doesn't have limitation on file descriptor number.
2015-07-16core: fix comment in function hook_find_posSébastien Helleu
2015-07-15core: add variables with count of hooksSébastien Helleu
2015-07-14core: reset pointers, file descriptors and child PIDs in unhook()Sébastien Helleu
2015-07-04api: fix type of value returned by functions utf8_prev_char, utf8_next_char ↵Sébastien Helleu
and utf8_add_offset
2015-07-04core: add missing comments before functions when the result must be freed ↵Sébastien Helleu
after use
2015-05-01core: fix compilation on CygwinSébastien Helleu
The header sys/select.h is now required for select() function.
2015-04-30core: add comments after some #endifSébastien Helleu
2015-01-21core: add gnutls version in #if compiler directivesSébastien Helleu
2015-01-01core: update copyright datesSébastien Helleu
2014-11-22api: fix truncated process output in hook_process() (closes #266)Sébastien Helleu
2014-11-15core: add debug message in hook_process when core debug >= 1Sébastien Helleu
2014-08-29api: use microseconds instead of milliseconds in functions util_timeval_diff ↵Sébastien Helleu
and util_timeval_add
2014-08-23core: add missing return code in comment of function hook_command_execSébastien Helleu
2014-08-23core: allow incomplete commands if unambiguous (task #5419)Sébastien Helleu
2014-08-10core: remove dead assignment in function hook_process_childSébastien Helleu
2014-08-10core: remove dead assignment in function hook_command_execSébastien Helleu
2014-07-05core: display curl error after a failed downloadSébastien Helleu
2014-04-03api: add option "buffer_flush" in function hook_process_hashtableSébastien Helleu
2014-03-11core: add missing \0 at the end of stderr buffer in hook_processSebastien Helleu
2014-03-11api: add option "detached" in function hook_process_hashtableSebastien Helleu
2014-03-11api: add option "signal" in function hook_set to send a signal to the child ↵Sebastien Helleu
process
2014-03-11core: fix detection of terminated process in hook_processSebastien Helleu
Check if the process is finished, even if stdout/stderr are not closed. Moreover, if the process was terminated by a signal, the return code is set to WEECHAT_HOOK_PROCESS_ERROR.
2014-02-21Merge branch 'trigger'Sebastien Helleu
2014-02-14core: fix completion template used in command completion when first argument ↵Sebastien Helleu
in template has pipes
2014-02-11core: ignore return value of 'write' in function hook_set (fix compiler warning)Sebastien Helleu
2014-02-10api: add integer return code for functions hook_{signal|hsignal}_sendSebastien Helleu
2014-02-09core: add argument "num_items" in function string_split_shellSebastien Helleu
2014-01-11api: add stdin options in functions hook_process_hashtable and hook_set ↵Sebastien Helleu
(task #10847, task #13031) The function hook_set has been added in script API.
2014-01-09core: optimize xxx_valid() functions: return immediately if pointer is NULLSebastien Helleu