From 17d20b9ca65d34fa014a1b97aa7afd75f6a04183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 24 Mar 2016 09:25:04 +0100 Subject: [PATCH] doc: add argument "subplugin" in function unhook_all (plugin API reference) --- doc/en/weechat_plugin_api.en.asciidoc | 9 +++++++-- doc/fr/weechat_plugin_api.fr.asciidoc | 9 +++++++-- doc/it/weechat_plugin_api.it.asciidoc | 10 ++++++++-- doc/ja/weechat_plugin_api.ja.asciidoc | 10 ++++++++-- 4 files changed, 30 insertions(+), 8 deletions(-) diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc index cbac91cb2..1c9e757c8 100644 --- a/doc/en/weechat_plugin_api.en.asciidoc +++ b/doc/en/weechat_plugin_api.en.asciidoc @@ -10393,14 +10393,19 @@ Prototype: [source,C] ---- -void weechat_unhook_all (); +void weechat_unhook_all_plugin (const char *subplugin); ---- +Arguments: + +* 'subplugin': if not NULL, unhook only hooks with this "subplugin" set + (this argument is not available in scripting API) + C example: [source,C] ---- -weechat_unhook_all (); +weechat_unhook_all (NULL); ---- Script (Python): diff --git a/doc/fr/weechat_plugin_api.fr.asciidoc b/doc/fr/weechat_plugin_api.fr.asciidoc index 8836cc840..e59953951 100644 --- a/doc/fr/weechat_plugin_api.fr.asciidoc +++ b/doc/fr/weechat_plugin_api.fr.asciidoc @@ -10596,14 +10596,19 @@ Prototype : [source,C] ---- -void weechat_unhook_all (); +void weechat_unhook_all (const char *subplugin); ---- +Paramètres : + +* 'subplugin' : si non NULL, décrocher uniquement les "hooks" qui ont ce + "subplugin" défini (ce paramètre n'est pas disponible dans l'API script) + Exemple en C : [source,C] ---- -weechat_unhook_all (); +weechat_unhook_all (NULL); ---- Script (Python) : diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc index 1dc10d6a4..f922aec0f 100644 --- a/doc/it/weechat_plugin_api.it.asciidoc +++ b/doc/it/weechat_plugin_api.it.asciidoc @@ -10742,14 +10742,20 @@ Prototipo: [source,C] ---- -void weechat_unhook_all (); +void weechat_unhook_all (const char *subplugin); ---- +Argomenti: + +// TRANSLATION MISSING +* 'subplugin': if not NULL, unhook only hooks with this "subplugin" set + (this argument is not available in scripting API) + Esempio in C: [source,C] ---- -weechat_unhook_all (); +weechat_unhook_all (NULL); ---- Script (Python): diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc index c6ac3c9df..51be29960 100644 --- a/doc/ja/weechat_plugin_api.ja.asciidoc +++ b/doc/ja/weechat_plugin_api.ja.asciidoc @@ -10407,14 +10407,20 @@ weechat.unhook(my_hook) [source,C] ---- -void weechat_unhook_all (); +void weechat_unhook_all (const char *subplugin); ---- +引数: + +// TRANSLATION MISSING +* 'subplugin': if not NULL, unhook only hooks with this "subplugin" set + (this argument is not available in scripting API) + C 言語での使用例: [source,C] ---- -weechat_unhook_all (); +weechat_unhook_all (NULL); ---- スクリプト (Python) での使用例: