Sébastien Helleu
feb6258910
core: update copyright dates
2020-01-04 10:41:26 +01:00
Sébastien Helleu
2b0057239b
core: update copyright dates
2019-01-01 15:40:51 +01:00
Sébastien Helleu
4712d0bb06
core: use https for links to GNU GPL license
2018-11-29 23:16:07 +01:00
Sébastien Helleu
49c3e62106
core: split wee-hook.c into multiple sources
2018-08-14 07:15:39 +02:00
Sébastien Helleu
42be1a74a0
api: add function hook_line
2018-08-12 21:45:00 +02:00
Sébastien Helleu
12a6f74ec0
core: fix check of tags in lines
...
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-08-12 20:30:13 +02:00
Sébastien Helleu
c6d4deb8df
Revert "core: remove colors from prefix/message only when needed in hook_print_exec"
...
This reverts commit bfc579cb33 .
2018-03-11 18:31:30 +01:00
Sébastien Helleu
7ee88fb46c
core: fix some styles
2018-01-07 09:11:45 +01:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
bfc579cb33
core: remove colors from prefix/message only when needed in hook_print_exec
2017-11-04 21:04:03 +01:00
Sébastien Helleu
b072586d79
core: add missing includes of stdio.h
2017-11-04 21:03:15 +01:00
Sébastien Helleu
5aab494dd6
core, plugins: check return code of strftime function
2017-09-23 15:06:28 +02:00
Sébastien Helleu
aeeec38d6f
core: fix cast of time_t (to "long long" instead of "long") ( closes #1051 )
2017-08-12 18:36:45 +02:00
Sébastien Helleu
77cefb7621
core: limit hook_command_run to the exact given command (when no "*" are in command hook)
2017-06-25 16:35:27 +02:00
Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
Sébastien Helleu
6c1815d3d1
core, xfer: display more information on fork errors (issue #573 )
2016-12-13 18:24:46 +01:00
Sébastien Helleu
d0af6b8dce
core: add optional arguments in completion template, sent to the callback
2016-11-29 20:01:35 +01:00
Sébastien Helleu
ec85bc1367
core: fix warnings about unused variables
2016-08-22 21:40:25 +02:00
Sébastien Helleu
c2ea70c3e9
api: fix connection to servers with hook_connect() on Windows 10 with 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-08-19 20:06:04 +02:00
Sébastien Helleu
51c3e0b9ec
api: add support of functions in hook_process
2016-04-23 13:59:20 +02:00
Sébastien Helleu
cf6aca1619
core: add pointer in some callbacks ( closes #406 )
...
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-21 18:11:21 +01:00
Sébastien Helleu
a225233d8c
core: remove plugin pointer in hooks debug messages
2016-03-06 11:48:16 +01:00
Sébastien Helleu
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01:00
Sébastien Helleu
3b2ee85b04
core: fix crash if a file descriptor used in hook_fd() is too high (> 1024 on Linux/BSD) ( closes #465 )
...
The calls to select() are replaced by poll(), which doesn't have limitation
on file descriptor number.
2015-07-18 20:03:34 +02:00
Sébastien Helleu
e29cb9a85a
core: fix comment in function hook_find_pos
2015-07-16 20:51:23 +02:00
Sébastien Helleu
80872061c2
core: add variables with count of hooks
2015-07-15 23:55:00 +02:00
Sébastien Helleu
00685bedd5
core: reset pointers, file descriptors and child PIDs in unhook()
2015-07-14 11:01:52 +02:00
Sébastien Helleu
4ecd8a505f
api: fix type of value returned by functions utf8_prev_char, utf8_next_char and utf8_add_offset
2015-07-04 08:39:55 +02:00
Sébastien Helleu
bd850398e8
core: add missing comments before functions when the result must be freed after use
2015-07-04 08:24:53 +02:00
Sébastien Helleu
8d25cd5d34
core: fix compilation on Cygwin
...
The header sys/select.h is now required for select() function.
2015-05-01 09:54:07 +02:00
Sébastien Helleu
71dd64678c
core: add comments after some #endif
2015-04-30 21:15:30 +02:00
Sébastien Helleu
b0117f0d18
core: add gnutls version in #if compiler directives
2015-01-21 07:50:54 +01:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
3fac3b1bf9
api: fix truncated process output in hook_process() ( closes #266 )
2014-11-22 19:33:48 +01:00
Sébastien Helleu
c58a195590
core: add debug message in hook_process when core debug >= 1
2014-11-15 10:53:57 +01:00
Sébastien Helleu
7b546bea2e
api: use microseconds instead of milliseconds in functions util_timeval_diff and util_timeval_add
2014-08-29 18:17:27 +02:00
Sébastien Helleu
23ea7cd67d
core: add missing return code in comment of function hook_command_exec
2014-08-23 12:39:02 +02:00
Sébastien Helleu
8c586eb49a
core: allow incomplete commands if unambiguous (task #5419 )
2014-08-23 12:13:11 +02:00
Sébastien Helleu
890a9e54be
core: remove dead assignment in function hook_process_child
2014-08-10 15:50:18 +02:00
Sébastien Helleu
15bb7656a5
core: remove dead assignment in function hook_command_exec
2014-08-10 15:50:18 +02:00
Sébastien Helleu
4350dd058e
core: display curl error after a failed download
2014-07-05 22:17:55 +02:00
Sébastien Helleu
936d5559f4
api: add option "buffer_flush" in function hook_process_hashtable
2014-04-03 11:39:23 +02:00
Sebastien Helleu
9543f9c034
core: add missing \0 at the end of stderr buffer in hook_process
2014-03-11 21:11:54 +01:00
Sebastien Helleu
4f48c7a566
api: add option "detached" in function hook_process_hashtable
2014-03-11 17:48:52 +01:00
Sebastien Helleu
42b416af19
api: add option "signal" in function hook_set to send a signal to the child process
2014-03-11 11:14:07 +01:00
Sebastien Helleu
b6da2c3fa5
core: fix detection of terminated process in hook_process
...
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-03-11 11:01:00 +01:00
Sebastien Helleu
f907ea17d5
Merge branch 'trigger'
2014-02-21 15:36:14 +01:00
Sebastien Helleu
e782020b14
core: fix completion template used in command completion when first argument in template has pipes
2014-02-14 14:50:31 +01:00
Sebastien Helleu
a9aca06545
core: ignore return value of 'write' in function hook_set (fix compiler warning)
2014-02-11 11:55:05 +01:00
Sebastien Helleu
437767c0ca
api: add integer return code for functions hook_{signal|hsignal}_send
2014-02-10 17:42:53 +01:00