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
7621939a7a
api: add function hdata_compare
2017-05-30 20:29:17 +02:00
Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
Sébastien Helleu
64f05204f9
api: move functions hook_completion* after hook_command
2016-11-27 17:34:15 +01:00
tomoe-mami
899b397f3f
lua: use lua_pushinteger for int values in lua 5.3
2016-11-01 14:18:47 +01:00
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
4716e81d4e
api: add missing function infolist_search_var() in script API (issue #484 )
2015-08-13 20:50:15 +02:00
Sébastien Helleu
7033fdd0cb
api: add missing function hook_completion_get_string() in script API (issue #484 )
2015-08-13 20:45:33 +02:00
Sébastien Helleu
2bd2d74a07
api: add function string_eval_path_home()
2015-06-24 07:54:42 +02:00
Tor Hveem
ff1aaf280b
lua: fix wrong argument usage in nicklist API functions
...
3 functions in the API; niclist_remove_group, nicklist_remove_nick and
nicklist_remove_all use the incorrent offset to get the Lua
argument values.
2015-03-06 20:08:38 +01:00
Sébastien Helleu
c0a27cf437
scripts: fix name of variables in infolist API functions
2015-03-04 07:40:07 +01:00
Sébastien Helleu
e745236cb4
lua: fix value returned in case of error in some functions
...
Affected functions:
- config_option_reset
- config_string
- config_string_default
- config_color
- config_color_default
- config_write
- config_read
- config_reload
- hook_modifier_exec
- buffer_string_replace_local_var
- nicklist_group_set
- nicklist_nick_set
- command
- upgrade_read
- upgrade_close
2015-03-01 10:39:08 +01:00
Sébastien Helleu
5e886961bd
scripts: fix return code of function bar_set in python/perl/ruby/lua/tcl/guile plugins
2015-03-01 09:57:35 +01:00
Sébastien Helleu
5a70597516
scripts: fix type of value returned by function hdata_time (from string to long integer) in perl/ruby/lua/tcl/guile plugins
2015-03-01 09:06:18 +01:00
Sébastien Helleu
c853d29e76
scripts: rename macro API_FUNC to API_INIT_FUNC, add macro API_FUNC to declare API functions
2015-02-21 09:49:51 +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
cdab55aa05
api: change type of arguments displayed/highlight in hook_print callback from string to integer (in scripts)
2014-05-10 08:26:56 +02:00
Sebastien Helleu
7213fe5826
scripts: fix size used in some snprintf
2014-02-28 11:38:23 +01:00
Sebastien Helleu
0c3835d824
scripts: fix crash when a signal is received with type "int" and NULL pointer in signal_data
2014-02-22 17:10:01 +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
86a99af606
scripts: fix script interpreter used after register during load of script in python/perl/ruby/lua/guile plugins (bug #41345 )
2014-01-25 13:04:25 +01:00
Sebastien Helleu
48837c35bc
api: add stdin options in functions hook_process_hashtable and hook_set (task #10847 , task #13031 )
...
The function hook_set has been added in script API.
2014-01-11 09:12:04 +01:00
Sebastien Helleu
892aa79fb5
core: update copyright dates
2014-01-01 00:14:12 +01:00
Sebastien Helleu
5a333b788d
lua: fix crash on calls to callbacks during load of script
2013-10-24 14:21:18 +02: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
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
4668f0bef5
lua: fix interpreter used in API functions (bug #39470 )
2013-07-13 07:22:02 +02:00
Sebastien Helleu
509a58b1d5
api: add new function hdata_search
2013-04-21 11:26:52 +02:00
Sebastien Helleu
2ffa199a7d
lua: remove use of functions for API constants
2013-03-24 20:01:57 +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
7d34812f1c
core: reformat comments for functions
2012-12-13 18:51:44 +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
5ea7ea6555
core: rename type t_script_callback to t_plugin_script_cb
2012-08-03 18:20:23 +02:00
Sebastien Helleu
57eb513547
core: remove directory "src/plugins/scripts", move script plugins in "src/plugins"
2012-08-02 22:28:43 +02:00