doc: move note in function hook_command_run (plugin API reference)

v2.8-utf8proc
Sébastien Helleu 2017-05-10 20:24:17 +02:00
parent 36187a240a
commit 93361c95d2
4 changed files with 5 additions and 20 deletions

View File

@ -8104,17 +8104,13 @@ Arguments:
** _const char *command_: the command executed, with its arguments
** return value:
*** _WEECHAT_RC_OK_
*** _WEECHAT_RC_OK_EAT_
*** _WEECHAT_RC_OK_EAT_: command will not be executed by WeeChat after callback
*** _WEECHAT_RC_ERROR_
* _callback_pointer_: pointer given to callback when it is called by WeeChat
* _callback_data_: pointer given to callback when it is called by WeeChat;
if not NULL, it must have been allocated with malloc (or similar function)
and it is automatically freed when the hook is deleted
[NOTE]
Callback can return _WEECHAT_RC_OK_ or _WEECHAT_RC_OK_EAT_ (command will not
be executed by WeeChat after callback).
Return value:
* pointer to new hook, NULL if error occurred

View File

@ -8242,7 +8242,8 @@ Paramètres :
** _const char *command_ : la commande exécutée, avec ses paramètres
** valeur de retour :
*** _WEECHAT_RC_OK_
*** _WEECHAT_RC_OK_EAT_
*** _WEECHAT_RC_OK_EAT_ : la commande ne sera pas exécutée par WeeChat après
la fonction de rappel
*** _WEECHAT_RC_ERROR_
* _callback_pointer_ : pointeur donné à la fonction de rappel lorsqu'elle est
appelée par WeeChat
@ -8251,10 +8252,6 @@ Paramètres :
fonction similaire) et est automatiquement libéré (par free) lorsque le
"hook" est supprimé
[NOTE]
La fonction de rappel peut retourner _WEECHAT_RC_OK_ ou _WEECHAT_RC_OK_EAT_ (la
commande ne sera pas exécutée par WeeChat après la fonction de rappel).
Valeur de retour :
* pointeur vers le nouveau "hook", NULL en cas d'erreur

View File

@ -8329,7 +8329,7 @@ Argomenti:
** _const char *command_: il comando eseguito, con i propri argomenti
** valore restituito:
*** _WEECHAT_RC_OK_
*** _WEECHAT_RC_OK_EAT_
*** _WEECHAT_RC_OK_EAT_: il comando non verrà eseguito da WeeChat dopo la callback
*** _WEECHAT_RC_ERROR_
* _callback_pointer_: puntatore fornito alla callback quando chiamata da WeeChat
// TRANSLATION MISSING
@ -8337,10 +8337,6 @@ Argomenti:
if not NULL, it must have been allocated with malloc (or similar function)
and it is automatically freed when the hook is deleted
[NOTE]
La callback può restituire _WEECHAT_RC_OK_ o _WEECHAT_RC_OK_EAT_ (il comando
non verrà eseguito da WeeChat dopo la callback).
Valore restituito:
* puntatore al nuovo hook, NULL in caso di errore

View File

@ -8108,17 +8108,13 @@ struct t_hook *weechat_hook_command_run (const char *command,
** _const char *command_: 実行するコマンド、引数付き
** 戻り値:
*** _WEECHAT_RC_OK_
*** _WEECHAT_RC_OK_EAT_
*** _WEECHAT_RC_OK_EAT_: コールバックの後にコマンドを実行しない
*** _WEECHAT_RC_ERROR_
* _callback_pointer_: WeeChat が _callback_ コールバックを呼び出す際にコールバックに渡すポインタ
* _callback_data_: WeeChat が _callback_ コールバックを呼び出す際にコールバックに渡すポインタ;
このポインタが NULL でない場合、このポインタは malloc (または類似の関数)
によって割り当てられたものでなければいけません。さらに、このポインタはここで作成したフックが削除された時点で自動的に開放されます
[NOTE]
コールバックは _WEECHAT_RC_OK_ または _WEECHAT_RC_OK_EAT_
(コールバックの後にコマンドを実行しない) を返すことができます。
戻り値:
* 新しいフックへのポインタ、エラーが起きた場合は NULL