1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 12:26:40 +02:00
Commit Graph

173 Commits

Author SHA1 Message Date
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 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 2bd2d74a07 api: add function string_eval_path_home() 2015-06-24 07:54:42 +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 7aaf3be15b api: add argument "flags" in function hdata_new_list 2014-05-24 18:03:14 +02: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 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
Sebastien Helleu 892aa79fb5 core: update copyright dates 2014-01-01 00:14:12 +01:00
Sebastien Helleu 90774b73d8 core: rename option weechat.look.set_title to weechat.look.window_title (evaluated string) 2013-11-09 17:07:02 +01: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 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 7d34812f1c core: reformat comments for functions 2012-12-13 18:51:44 +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
Sebastien Helleu 3849cb49bc core: add signals for plugins loaded/unloaded 2012-09-04 12:39:56 +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
Sebastien Helleu eab0110732 core: add support of arrays in hdata variables 2012-07-20 18:12:07 +02:00
Peter Boström c03fcd5e12 core: add function "hook_set" in plugin API, add "subplugin" in hooks (set by script plugins), display subplugin in /help on commands (task #12049) 2012-07-09 15:16:51 +02:00
Sebastien Helleu 5f6df8021b core: add support of flags in regular expressions and highlight options, add irc options to customize/disable default nick highlight (task #11128)
New functions in C plugin API:
- string_regex_flags
- string_regcomp

New irc options:
- irc.look.highlight_server
- irc.look.highlight_channel
- irc.look.highlight_pv

Regex flags are supported in following options/commands:
- option weechat.look.highlight
- option weechat.look.highlight_regex
- options irc.look.highlight_{server|channel|pv}
- option relay.network.allowed_ips
- core command /filter
- irc command /list
- irc command /ignore
- rmodifier command /rmodifier
2012-01-22 13:48:42 +01:00
Sebastien Helleu b91c231096 core: add URL transfer (using libcurl), add function hook_process_hashtable in plugin API, add support of URL in hook_process/hook_process_hashtable (task #10247) 2012-01-16 19:52:08 +01:00
Sebastien Helleu 47e4a03be6 core: update copyright dates 2012-01-08 18:59:50 +01:00
Sebastien Helleu 6f3fd239be core: add type "hashtable" for hdata, new api functions: hdata_hashtable and hashtable_map_string 2011-12-19 22:39:24 +01:00
Sebastien Helleu bd3f554e02 api: add new function hdata_check_pointer 2011-12-17 17:03:39 +01:00
Sebastien Helleu 00a3f990b3 api: add new function nicklist_get_next_item 2011-12-06 22:57:21 +01:00
Sebastien Helleu bfc010df2f core: add type char for hdata and function hdata_char in plugin/script API 2011-11-25 15:09:44 +01:00
Sebastien Helleu e5a74fca72 core: allow list for option weechat.plugin.extension (makes weechat.conf portable accross Un*x and Windows) (task #11479) 2011-11-15 10:42:46 +01:00
Sebastien Helleu 491412b314 api: add new functions strcasecmp_range and strncasecmp_range 2011-11-12 10:37:44 +01:00
Sebastien Helleu ce8ae83e17 core: add optional arguments for command /plugin load/reload/autoload 2011-10-29 11:16:45 +02:00
Sebastien Helleu dfdf42e27b core: remove unneeded whitespace 2011-10-26 20:37:03 +02:00
Sebastien Helleu 44f2b7caf4 core: add functions "key_bind" and "key_unbind" in plugin API 2011-08-20 10:52:27 +02:00
Sebastien Helleu e0781f0390 core: add mouse support (task #5435), free cursor movement, hook_focus, fix bugs with key "^" (bug #32072, bug #21381), fix bugs with bar windows, completion and /buffer
New features and bugs fixed:
- mouse support: new command /mouse, new option weechat.look.mouse, new key context "mouse"
- free movement of cursor: new command /cursor, new key context "cursor"
- new hook_focus (used by cursor and mouse)
- info "cursor_mode"
- bugs fixed with key "^"
- allow plugin name in /buffer name
- fix bugs with bar windows: do not create bar windows for hidden bars
- fix completion bug when two words for completion are equal but with different case
- automatic scroll direction in /bar scroll (x/y is now optional)
2011-07-26 18:50:29 +02:00
Sebastien Helleu 56a39bc8c8 core: add missing include of stddef.h in plugin.c 2011-06-29 10:24:03 +02:00
Sebastien Helleu 19bc95b961 core: many improvements on hdata
New features:
- add optional hdata name for variables in hdata
- add plugin API functions: hdata_get_var_hdata
- use hashtable to store hdata (created by WeeChat and plugins)
- free hdata and infolists created by plugin on plugin unload
- free all hdata on exit
- add "free" option to command /debug hdata
- remove hdata for hooks
2011-06-26 18:15:42 +02:00
Sebastien Helleu c8b2a6a084 core: add "hdata" (direct access to WeeChat/plugin data) 2011-06-13 12:32:27 +02:00
Sebastien Helleu 3fd2af8184 api: add new function config_set_desc_plugin (task #10925) 2011-04-26 17:47:49 +02:00
Sebastien Helleu 7673a700b3 core: use buffer pointer instead of window in input functions, add new function window_search_with_buffer in plugin API 2011-04-13 20:25:26 +02:00
Sebastien Helleu c71e2cad38 Add function "buffer_match_list" in plugin API 2011-03-11 18:39:37 +01:00