From 80bb54fed837b3954737d21bad7083b7b32ff8e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 9 Mar 2025 09:31:36 +0100 Subject: [PATCH] doc/api: add difference between hook_url and hook_process_hashtable --- doc/en/weechat_plugin_api.en.adoc | 4 ++++ doc/fr/weechat_plugin_api.fr.adoc | 4 ++++ doc/it/weechat_plugin_api.it.adoc | 4 ++++ doc/ja/weechat_plugin_api.ja.adoc | 4 ++++ doc/sr/weechat_plugin_api.sr.adoc | 5 +++++ 5 files changed, 21 insertions(+) diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 5402541d7..c70768940 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -10981,6 +10981,10 @@ _WeeChat ≥ 4.1.0._ URL transfer. +This function is similar to <<_hook_process_hashtable,hook_process_hashtable>> +with command "url:..." but it uses a thread instead of new process, making it +more lightweight and thus recommended for this usage. + Prototype: [source,c] diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index 0ed0b94b1..4d476ca38 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -11185,6 +11185,10 @@ _WeeChat ≥ 4.1.0._ Transfert d'URL. +Cette fonction est similaire à <<_hook_process_hashtable,hook_process_hashtable>> +avec la commande "url:..." mais elle utilise un thread au lieu d'un nouveau +processus, la rendant plus légère et donc recommandée pour cet usage. + Prototype : [source,c] diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index d55e4845e..6ad41278b 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -11394,6 +11394,10 @@ _WeeChat ≥ 4.1.0._ URL transfer. +This function is similar to <<_hook_process_hashtable,hook_process_hashtable>> +with command "url:..." but it uses a thread instead of new process, making it +more lightweight and thus recommended for this usage. + Prototipo: [source,c] diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index b59a3a48d..50d154ba1 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -11127,6 +11127,10 @@ _WeeChat ≥ 4.1.0._ URL transfer. +This function is similar to <<_hook_process_hashtable,hook_process_hashtable>> +with command "url:..." but it uses a thread instead of new process, making it +more lightweight and thus recommended for this usage. + プロトタイプ: [source,c] diff --git a/doc/sr/weechat_plugin_api.sr.adoc b/doc/sr/weechat_plugin_api.sr.adoc index c4889c8fd..d87ffcf31 100644 --- a/doc/sr/weechat_plugin_api.sr.adoc +++ b/doc/sr/weechat_plugin_api.sr.adoc @@ -10702,6 +10702,11 @@ _WeeChat ≥ 4.1.0._ URL трансфер. +// TRANSLATION MISSING +This function is similar to <<_hook_process_hashtable,hook_process_hashtable>> +with command "url:..." but it uses a thread instead of new process, making it +more lightweight and thus recommended for this usage. + Прототип: [source,c]