Sébastien Helleu
51c3e0b9ec
api: add support of functions in hook_process
2016-04-23 13:59:20 +02:00
Sébastien Helleu
5244a707cb
api: rename function unhook_all_plugin to unhook_all
2016-03-24 09:17:54 +01: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
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01:00
Sébastien Helleu
951d1f91a4
api: add function string_hex_dump()
2015-08-22 09:30:08 +02:00
Sébastien Helleu
46a9d17ac3
api: add argument "length" in function utf8_is_valid()
2015-08-18 07:36:48 +02:00
Sébastien Helleu
23fd23fd1a
api: fix type of value returned by function util_get_time_string
2015-07-04 16:23:04 +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
b13db0305d
api: fix type of value returned by function strcasestr
2015-07-03 19:45:51 +02:00
Sébastien Helleu
2bd2d74a07
api: add function string_eval_path_home()
2015-06-24 07:54:42 +02:00
Sébastien Helleu
71dd64678c
core: add comments after some #endif
2015-04-30 21:15:30 +02:00
Sébastien Helleu
cf5501f69c
core: add priority in plugins to initialize them in order
...
Current order is: charset, logger, exec, trigger, aspell, alias, fifo, xfer,
irc, relay, guile/lua/perl/python/ruby/tcl, script.
2015-01-15 07:40:38 +01:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
1ef3237b6b
api: return value in function command(), remove WeeChat error after command callback if return code is WEECHAT_RC_ERROR
2014-11-22 08:14:29 +01:00
Sébastien Helleu
03c0067272
core: fix compilation of plugin API functions (macros) when compiler optimizations are enabled ( closes #200 )
2014-09-20 17:38:46 +02: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
cf3e0ccbfd
core: fix result of hash function (in hashtables) on 32-bit systems
2014-08-02 16:53:12 +02:00
Sébastien Helleu
d0fa44865c
core: fix potential memory leak with infolists not freed in plugins (debian #751108 )
...
The memory leak should not happen if infolists are properly freed by plugins,
and it happened only on unload of plugins (or exit).
2014-06-10 20:14:24 +02:00
Sébastien Helleu
7aaf3be15b
api: add argument "flags" in function hdata_new_list
2014-05-24 18:03:14 +02:00
Sebastien Helleu
9b380a935b
core: fix use of reserved C identifiers in headers ( closes #31 )
2014-03-19 10:39:13 +01:00
Sebastien Helleu
cd65198c71
api: add callback in function string_replace_regex
2014-03-13 10:59:58 +01:00
Sebastien Helleu
5708b3977c
exec: update plugin API version
2014-03-11 17:49:50 +01:00
Sebastien Helleu
3c398bd61d
rmodifier: remove plugin (replaced by trigger)
2014-03-04 12:08:33 +01:00
Sebastien Helleu
f907ea17d5
Merge branch 'trigger'
2014-02-21 15:36:14 +01:00
Sebastien Helleu
c06cfb25ce
api: add function string_convert_escaped_chars
2014-02-13 18:39:55 +01:00
Sebastien Helleu
437767c0ca
api: add integer return code for functions hook_{signal|hsignal}_send
2014-02-10 17:42:53 +01:00
Sebastien Helleu
7c0d9fe850
core: improve the string_replace_regex function (add reference char, change syntax for match refs)
...
The reference char is now an argument for the function.
The references are now $0 .. $99 and $+ was added (last match, with
highest number).
The syntax to replace a match with one char is now: $.cN or $.c+
(for example: "$.*3").
2014-02-09 15:14:07 +01:00
Sebastien Helleu
a03653273c
core: replace "regex_t *" by "void *" in string functions (fix ruby compilation error with autotools)
2014-02-09 12:55:40 +01:00
Sebastien Helleu
b5bfeb7b8d
api: add function string_split_shell
2014-02-09 12:55:40 +01:00
Sebastien Helleu
2e28f7c6be
api: add function hashtable_dup
2014-02-09 12:55:40 +01:00
Sebastien Helleu
30942f7f62
trigger: add trigger plugin
2014-02-09 12:55:40 +01:00
Sebastien Helleu
a763797d36
api: add function "infolist_search_var"
2014-01-22 15:08:50 +01:00
Andrew Potter
144dc60d0a
xfer: add support of IPv6 for DCC chat/file (patch #7992 )
2014-01-09 12:48:54 +01:00
Sebastien Helleu
846dde00aa
core: fix crash with hdata_update on shared strings, add hdata type "shared_string" (bug #41104 )
2014-01-05 14:37:27 +01:00
Sebastien Helleu
892aa79fb5
core: update copyright dates
2014-01-01 00:14:12 +01:00
stfn
652653ff82
api: add support for C++ plugins
2013-11-09 13:47:13 +01:00
Sebastien Helleu
eac1ca929b
core: add syntax "@buffer:item" in bar items to force the buffer used when displaying the bar item (task #12717 )
2013-08-19 21:22:10 +02:00
Sebastien Helleu
d12c9efdbc
core: change type of hashtable key hash to unsigned long, return item pointer in functions hashtable_set(_with_size)
...
The key hash has been changed from unsigned int to unsigned long, and now the
callback can return any value (not only between 0 and size-1), the modulo is
computed after the call to the callback by the hashtable functions.
Functions hashtable_set and hashtable_set_with_size were returning 1 if OK,
0 if error. Now they return pointer to hashtable item, or NULL if error.
2013-08-10 09:35:06 +02:00
Sebastien Helleu
dc878c5b69
api: add argument "options" in function string_eval_expression, add option "-c" for command /eval (to evaluate a condition)
2013-08-04 08:56:56 +02:00
Sebastien Helleu
6be17ac263
api: add new function strlen_screen
2013-07-27 18:21:50 +02:00
Sebastien Helleu
509a58b1d5
api: add new function hdata_search
2013-04-21 11:26:52 +02:00
Sebastien Helleu
adbfda00f5
script: fix compilation on GNU/Hurd (patch #7977 ) (thanks to Andrew Potter)
...
PATH_MAX is now defined in weechat-plugin.h (if not defined, for example on
GNU/Hurd), so that all plugins can use it.
2013-03-25 08:14:33 +01:00
Sebastien Helleu
f97598b4aa
core: update copyright dates
2013-01-01 13:12:49 +01:00
Sebastien Helleu
7eb5cc4b97
core: move comments with description of C file to top of files
2012-12-15 12:27:57 +01:00
Sebastien Helleu
641de51bdb
api: allow creation of structure with hdata_update (allowed for hdata "history")
2012-12-08 23:54:07 +01:00
Sebastien Helleu
32c93b5c0a
core: add command /eval, use expression in conditions for bars, add function "string_eval_expression" in plugin API
2012-11-02 09:37:15 +01:00
Simon Arlott
248aa8d73a
api: connect with IPv6 by default in hook_connect (with fallback to IPv4), shuffle list of hosts for a same address (task #11205 )
2012-10-14 10:59:00 +02:00
Sebastien Helleu
df80aa5fc9
api: allow update for some variables of hdata, add new functions hdata_update and hdata_set
2012-08-27 09:47:46 +02:00
Sebastien Helleu
00b879962a
api: add new function util_version_number
2012-08-04 13:58:25 +02:00
Sebastien Helleu
e41595833a
core: update description of plugins and translate them in output of /plugin
2012-08-02 09:21:47 +02:00