diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-01-15 07:40:38 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-01-15 07:40:38 +0100 |
commit | cf5501f69c4312fdfa9f73fd25a59c443f4413ea (patch) | |
tree | 243753563fe907d01a7182bb6f268f4bf5623b57 /doc/ja | |
parent | 66e0455951c245a8ac2d7b4bf0384e1d12405608 (diff) | |
download | weechat-cf5501f69c4312fdfa9f73fd25a59c443f4413ea.zip |
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.
Diffstat (limited to 'doc/ja')
-rw-r--r-- | doc/ja/autogen/plugin_api/hdata.asciidoc | 2 | ||||
-rw-r--r-- | doc/ja/autogen/plugin_api/plugins_priority.asciidoc | 12 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.asciidoc | 20 |
3 files changed, 34 insertions, 0 deletions
diff --git a/doc/ja/autogen/plugin_api/hdata.asciidoc b/doc/ja/autogen/plugin_api/hdata.asciidoc index 65e1f906e..dbffd4c99 100644 --- a/doc/ja/autogen/plugin_api/hdata.asciidoc +++ b/doc/ja/autogen/plugin_api/hdata.asciidoc @@ -843,6 +843,8 @@ *** 'version' (string) *** 'license' (string) *** 'charset' (string) +*** 'priority' (integer) +*** 'initialized' (integer) *** 'debug' (integer) *** 'prev_plugin' (pointer, hdata: "plugin") *** 'next_plugin' (pointer, hdata: "plugin") diff --git a/doc/ja/autogen/plugin_api/plugins_priority.asciidoc b/doc/ja/autogen/plugin_api/plugins_priority.asciidoc new file mode 100644 index 000000000..d5a171b0b --- /dev/null +++ b/doc/ja/autogen/plugin_api/plugins_priority.asciidoc @@ -0,0 +1,12 @@ +. charset (13000) +. logger (12000) +. exec (11000) +. trigger (10000) +. aspell (9000) +. alias (8000) +. fifo (7000) +. xfer (6000) +. irc (5000) +. relay (4000) +. guile, lua, perl, python, ruby, tcl (3000) +. script (2000) diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc index a5e0c0a40..4f88732a9 100644 --- a/doc/ja/weechat_plugin_api.ja.asciidoc +++ b/doc/ja/weechat_plugin_api.ja.asciidoc @@ -62,6 +62,10 @@ WEECHAT_PLUGIN_VERSION("1.0"):: WEECHAT_PLUGIN_LICENSE("GPL3"):: プラグインのライセンス +// TRANSLATION MISSING +WEECHAT_PLUGIN_PRIORITY(1000):: + the plugin priority (optional, see below) + [[main_functions]] === 重要な関数 @@ -93,6 +97,22 @@ int weechat_plugin_init (struct t_weechat_plugin *plugin, * 'WEECHAT_RC_OK' 成功した場合 (プラグインを読み込みます) * 'WEECHAT_RC_ERROR' エラーが起きた場合 (プラグインを読み込みません) +// TRANSLATION MISSING +[[plugin_priority]] +===== Plugin priority + +// TRANSLATION MISSING +When plugins are auto-loaded (for example on startup), WeeChat first loads all +plugins, and then calls the 'init' functions, using the priority defined in +each plugin. A high priority means that the 'init' function is called first. + +Default priority is 1000 (with such priority, the plugin is loaded after all +default plugins). + +The default WeeChat plugins are initialized in this order: + +include::autogen/plugin_api/plugins_priority.asciidoc[] + ==== weechat_plugin_end WeeChat プラグインを再読み込みする際にこの関数を呼び出します。 |