summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/en/weechat_plugin_api.en.asciidoc12
-rw-r--r--doc/fr/weechat_plugin_api.fr.asciidoc12
-rw-r--r--doc/it/weechat_plugin_api.it.asciidoc12
-rw-r--r--doc/ja/weechat_plugin_api.ja.asciidoc12
4 files changed, 8 insertions, 40 deletions
diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc
index 68a3c3d41..4bf87734b 100644
--- a/doc/en/weechat_plugin_api.en.asciidoc
+++ b/doc/en/weechat_plugin_api.en.asciidoc
@@ -7163,27 +7163,19 @@ my_command_cb (const void *pointer, void *data, struct t_gui_buffer *buffer,
/* this example is inspired by command /filter */
struct t_hook *my_command_hook =
- weechat_hook_command (/* command name */
- "myfilter",
- /* description */
+ weechat_hook_command ("myfilter",
"description of myfilter",
- /* args */
"[list] | [enable|disable|toggle [name]] | "
"[add name plugin.buffer tags regex] | "
"[del name|-all]",
- /* args description */
"description of arguments...",
- /* completion */
"list"
" || enable %(filters_names)"
" || disable %(filters_names)"
" || toggle %(filters_names)"
" || add %(filters_names) %(buffers_plugins_names)|*"
" || del %(filters_names)|-all",
- /* callback */
- &my_command_cb,
- /* callback_data */
- NULL, NULL);
+ &my_command_cb, NULL, NULL);
----
For example, if command called is `/command abc def ghi`, then 'argv' and
diff --git a/doc/fr/weechat_plugin_api.fr.asciidoc b/doc/fr/weechat_plugin_api.fr.asciidoc
index 1df105e3a..3314a075d 100644
--- a/doc/fr/weechat_plugin_api.fr.asciidoc
+++ b/doc/fr/weechat_plugin_api.fr.asciidoc
@@ -7290,27 +7290,19 @@ my_command_cb (const void *pointer, void *data, struct t_gui_buffer *buffer,
/* cet exemple s'inspire de la commande /filter */
struct t_hook *my_command_hook =
- weechat_hook_command (/* nom de la commande */
- "monfiltre",
- /* description */
+ weechat_hook_command ("monfiltre",
"description de monfiltre",
- /* paramètres */
"[list] | [enable|disable|toggle [nom]] | "
"[add nom extension.tampon tags regex] | "
"[del nom|-all]",
- /* description des paramètres */
"description des paramètres...",
- /* complétion */
"list"
" || enable %(filters_names)"
" || disable %(filters_names)"
" || toggle %(filters_names)"
" || add %(filters_names) %(buffers_plugins_names)|*"
" || del %(filters_names)|-all",
- /* callback */
- &my_command_cb,
- /* callback_data */
- NULL, NULL);
+ &my_command_cb, NULL, NULL);
----
Par exemple, si la commande appelée est `/command abc def ghi`, alors 'argv' et
diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc
index 85c5d2ce0..1206ca831 100644
--- a/doc/it/weechat_plugin_api.it.asciidoc
+++ b/doc/it/weechat_plugin_api.it.asciidoc
@@ -7335,27 +7335,19 @@ my_command_cb (const void *pointer, void *data, struct t_gui_buffer *buffer,
/* questo esempio si ispira al comando /filter */
struct t_hook *my_command_hook =
- weechat_hook_command (/* nome comando */
- "myfilter",
- /* description */
+ weechat_hook_command ("myfilter",
"description of myfilter",
- /* args */
"[list] | [enable|disable|toggle [name]] | "
"[add name plugin.buffer tags regex] | "
"[del name|-all]",
- /* args description */
"description of arguments...",
- /* completion */
"list"
" || enable %(filters_names)"
" || disable %(filters_names)"
" || toggle %(filters_names)"
" || add %(filters_names) %(buffers_plugins_names)|*"
" || del %(filters_names)|-all",
- /* callback */
- &my_command_cb,
- /* callback_data */
- NULL, NULL);
+ &my_command_cb, NULL, NULL);
----
Ad esempio, se il comando chiamato è `/comando abc def ghi`, allora
diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc
index 1ca0ec6e7..f7ec2fd44 100644
--- a/doc/ja/weechat_plugin_api.ja.asciidoc
+++ b/doc/ja/weechat_plugin_api.ja.asciidoc
@@ -7169,27 +7169,19 @@ my_command_cb (const void *pointer, void *data, struct t_gui_buffer *buffer,
/* this example is inspired by command /filter */
struct t_hook *my_command_hook =
- weechat_hook_command (/* command name */
- "myfilter",
- /* description */
+ weechat_hook_command ("myfilter",
"description of myfilter",
- /* args */
"[list] | [enable|disable|toggle [name]] | "
"[add name plugin.buffer tags regex] | "
"[del name|-all]",
- /* args description */
"description of arguments...",
- /* completion */
"list"
" || enable %(filters_names)"
" || disable %(filters_names)"
" || toggle %(filters_names)"
" || add %(filters_names) %(buffers_plugins_names)|*"
" || del %(filters_names)|-all",
- /* callback */
- &my_command_cb,
- /* callback_data */
- NULL, NULL);
+ &my_command_cb, NULL, NULL);
----
例えば、コマンドが `/command abc def ghi`