1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 07:46:38 +02:00
Commit Graph

42 Commits

Author SHA1 Message Date
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 c4e3d66ba5 core: add a parent name in options (closes #629)
Inherited values are now displayed in /set output when the value is
null, if a parent option name is defined in option.

New option: weechat.color.chat_value_null
2015-12-24 07:53:37 +01:00
Sébastien Helleu a020c28ea6 core: update copyright dates 2015-01-01 09:23:23 +01: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 892aa79fb5 core: update copyright dates 2014-01-01 00:14:12 +01:00
Sebastien Helleu 149c77decd core: fix typos in many comments and some strings 2013-03-17 12:55:20 +01:00
Sebastien Helleu f97598b4aa core: update copyright dates 2013-01-01 13:12:49 +01:00
Peter Boström a67d97f16e core: add option "diff" for command /set (list options with changed value) 2012-12-20 18:18:33 +01:00
Sebastien Helleu 47e4a03be6 core: update copyright dates 2012-01-08 18:59:50 +01:00
Sebastien Helleu c8b2a6a084 core: add "hdata" (direct access to WeeChat/plugin data) 2011-06-13 12:32:27 +02:00
Sebastien Helleu d24f6e9e17 Update copyright dates 2011-01-01 18:06:29 +01:00
Sebastien Helleu dcdba08f8a Update comments after #endif in C headers 2010-06-25 15:03:39 +02:00
Sebastien Helleu 6562d676fe Update licenses and copyrights, add missing author names in sources 2010-06-22 19:46:28 +02:00
Sebastien Helleu b9e65ec63d Fix bug with writing of configuration files when disk is full (bug #29331) 2010-03-26 19:01:25 +01:00
Sebastien Helleu 2801b8437c Reformat multi-line comments 2010-03-19 23:33:14 +01:00
Sebastien Helleu 2133eb30ff Update copyright dates 2010-01-03 19:31:55 +01:00
Sebastien Helleu a708f9f813 Add missing config functions in script plugin API to free sections and options 2009-02-21 21:31:46 +01:00
Sebastien Helleu 88aa905ee3 Remove unused functions and prototypes 2009-01-04 01:05:33 +01:00
Sebastien Helleu 2115f3f675 Update copyright dates 2009-01-03 10:06:53 +01:00
Sebastien Helleu e7e2da5a9c Add null values for options, new syntax for /set, reintroduce temporary IRC server feature, improve IRC server options, new functions in API 2009-01-02 23:05:23 +01:00
Sebastien Helleu 8724fc18af Use of const for some functions returning "char *" 2008-11-15 22:35:12 +01:00
Sebastien Helleu 67d8312f46 Update developer guide (add 50% of new C API functions) 2008-11-07 18:27:16 +01:00
Sebastien Helleu 6f442bbfc1 Add new features to logger plugin (command /logger, log level, level by buffer, mask by buffer, ..), fix some bugs
New features:
- new command /logger
- log level, to log only some messages, according to importance (task #8592)
- level by buffer: custom level for some buffers (or group of buffers)
- log filename mask by buffer (or group of buffers)
- marker line is added after display of backlog
- add "delete" callback for config file sections
- add "mkdir_parents" function to plugin API
- remove old log options in IRC plugin

Bug fix:
- marker line is set only when user switches buffer (not when a plugin force
  switch, like IRC plugin does when opening server or channel buffer)
- backlog fixed (sometimes lines were not properly displayed)
2008-10-30 17:18:28 +01:00
Sebastien Helleu 3b81a4746a Add new argument "value" to function config_new_option 2008-10-18 19:31:40 +02:00
Sebastien Helleu b76d7e4a5c Reintroduce /upgrade command, working only with core and IRC plugin today
Command will be improved in near future and other plugins like xfer
will be modified to manage upgrade process.
2008-08-19 23:22:52 +02:00
Sebastien Helleu 3a53257032 Add "const" keyword for some "char *" function arguments (core and plugins API) 2008-06-03 10:56:51 +02:00
Sebastien Helleu 238c6bf5c2 Mask allowed with /unset command (for mass-reset options) (task #6085) 2008-05-07 15:27:19 +02:00
Sebastien Helleu b87d709a70 New format for [bar] section in weechat.conf file, bar options can be set with /set command 2008-04-15 13:50:01 +02:00
Sebastien Helleu d975629686 Improved /set command, added /unset command, new name for config files (*.conf) 2008-04-11 18:36:06 +02:00
Sebastien Helleu 61ca929728 Added tags for lines and custom filtering by tags or regex (task #7674), fixed many memory leaks 2008-03-22 23:36:12 +01:00
Sebastien Helleu ad41486543 Added config file functions in plugins API, improved /reload and /save commands (now possible to reload/save some files only), fixed completion bug 2008-01-27 10:48:29 +01:00
Sebastien Helleu ed26a0389c Add of "modifier" hook, migration of charset plugin to new API, SIGHUP signal catched (reload all config files), better config files reloading 2008-01-24 16:50:20 +01:00
Sebastien Helleu e3b52115c7 Update of year in some copyrights 2008-01-02 12:47:09 +01:00
Sebastien Helleu dba084f3d6 New backlog option in logger plugin, added variable names in .h files, replaced "void *" pointers by structures 2007-12-17 17:07:08 +01:00
Sebastien Helleu 495e6bd5df Many changes in IRC plugin and plugins API 2007-12-07 13:12:46 +01:00
Sebastien Helleu bda2cdd408 Removed WeeChat "command" structure, now all internal commands are hooked when WeeChat starts 2007-12-04 13:25:02 +01:00
Sebastien Helleu 2888d41425 Added alias plugin, added missing config file functions in plugins API 2007-12-03 18:03:10 +01:00
Sebastien Helleu fab33dc4df Added config files management in plugins API 2007-12-02 18:02:18 +01:00
Sebastien Helleu d9755e237b Added /reload command 2007-12-01 10:25:59 +01:00
Sebastien Helleu 59fb878b77 New config functions, almost entirely rewritten from scratch 2007-12-01 00:35:57 +01:00
Sebastien Helleu 985db1a103 Added sources to manage config options and files 2007-10-31 17:10:23 +01:00