doc: fix links in plugin API reference

This commit is contained in:
Sébastien Helleu 2015-03-28 23:37:12 +01:00
parent 507fc2570f
commit 3e8b0f37ca
4 changed files with 144 additions and 144 deletions

View File

@ -791,7 +791,7 @@ _WeeChat ≥ 0.4.2._
Return number of chars needed on screen to display UTF-8 string. Return number of chars needed on screen to display UTF-8 string.
Non-printable chars have a width of 1 (this is the difference with the function Non-printable chars have a width of 1 (this is the difference with the function
<<_weechat_utf8_strlen_screen,weechat_utf8_strlen_screen>>). <<_utf8_strlen_screen,weechat_utf8_strlen_screen>>).
Prototype: Prototype:
@ -1136,7 +1136,7 @@ _WeeChat ≥ 0.3.7._
Compile a POSIX extended regular expression using optional flags at beginning Compile a POSIX extended regular expression using optional flags at beginning
of string (for format of flags, see of string (for format of flags, see
<<_weechat_string_regex_flags,weechat_string_regex_flags>>). <<_string_regex_flags,weechat_string_regex_flags>>).
Prototype: Prototype:
@ -1312,7 +1312,7 @@ Arguments:
* 'string': string * 'string': string
* 'regex': pointer to a regular expression ('regex_t' structure) compiled with * 'regex': pointer to a regular expression ('regex_t' structure) compiled with
WeeChat function <<_weechat_string_regcomp,weechat_string_regcomp>> or regcomp WeeChat function <<_string_regcomp,weechat_string_regcomp>> or regcomp
(see `man regcomp`) (see `man regcomp`)
* 'replace': replacement text, where following references are allowed: * 'replace': replacement text, where following references are allowed:
** `$0` to `$99`: match 0 to 99 in regular expression (0 is the whole match, ** `$0` to `$99`: match 0 to 99 in regular expression (0 is the whole match,
@ -1383,7 +1383,7 @@ Arguments:
Return value: Return value:
* array of strings, NULL if problem (must be freed by calling * array of strings, NULL if problem (must be freed by calling
<<_weechat_string_free_split,weechat_string_free_split>> after use) <<_string_free_split,weechat_string_free_split>> after use)
C example: C example:
@ -1437,7 +1437,7 @@ Arguments:
Return value: Return value:
* array of strings, NULL if problem (must be freed by calling * array of strings, NULL if problem (must be freed by calling
<<_weechat_string_free_split,weechat_string_free_split>> after use) <<_string_free_split,weechat_string_free_split>> after use)
C example: C example:
@ -1472,7 +1472,7 @@ void weechat_string_free_split (char **split_string);
Arguments: Arguments:
* 'split_string': string split by function * 'split_string': string split by function
<<_weechat_string_split,weechat_string_split>> <<_string_split,weechat_string_split>>
C example: C example:
@ -1503,7 +1503,7 @@ char *weechat_string_build_with_split_string (char **split_string,
Arguments: Arguments:
* 'split_string': string split by function * 'split_string': string split by function
<<_weechat_string_split,weechat_string_split>> <<_string_split,weechat_string_split>>
* 'separator': string used to separate strings * 'separator': string used to separate strings
Return value: Return value:
@ -1546,7 +1546,7 @@ Arguments:
Return value: Return value:
* array of strings, NULL if problem (must be freed by calling * array of strings, NULL if problem (must be freed by calling
<<_weechat_free_split_command,weechat_free_split_command>> after use) <<_free_split_command,weechat_free_split_command>> after use)
C example: C example:
@ -1576,7 +1576,7 @@ void weechat_string_free_split_command (char **split_command);
Arguments: Arguments:
* 'split_command': command split by * 'split_command': command split by
<<_weechat_string_split_command,weechat_string_split_command>> <<_string_split_command,weechat_string_split_command>>
C example: C example:
@ -1870,7 +1870,7 @@ Arguments:
pointer); pointers "window" and "buffer" are automatically added if they are pointer); pointers "window" and "buffer" are automatically added if they are
not in hashtable (with pointer to current window/buffer) (can be NULL): not in hashtable (with pointer to current window/buffer) (can be NULL):
** 'regex': pointer to a regular expression ('regex_t' structure) compiled with ** 'regex': pointer to a regular expression ('regex_t' structure) compiled with
WeeChat function <<_weechat_string_regcomp,weechat_string_regcomp>> or WeeChat function <<_string_regcomp,weechat_string_regcomp>> or
regcomp (see `man regcomp`); this option is similar to 'regex' in hashtable regcomp (see `man regcomp`); this option is similar to 'regex' in hashtable
'options' (below), but is used for better performance 'options' (below), but is used for better performance
* 'extra_vars': extra variables that will be expanded (can be NULL) * 'extra_vars': extra variables that will be expanded (can be NULL)
@ -1931,7 +1931,7 @@ expanded to last):
| `${info:name}` + | `${info:name}` +
`${indo:name,arguments}` | `${indo:name,arguments}` |
Info from WeeChat or a plugin, see function Info from WeeChat or a plugin, see function
<<_weechat_info_get,weechat_info_get>> | <<_info_get,weechat_info_get>> |
`${info:version}` + `${info:version}` +
`${info:irc_nick_color_name,foo}` | `${info:irc_nick_color_name,foo}` |
`1.0` + `1.0` +
@ -4132,10 +4132,10 @@ Return value:
[NOTE] [NOTE]
File is NOT created on disk by this function. It will be created by call to File is NOT created on disk by this function. It will be created by call to
function <<_weechat_config_write,weechat_config_write>>. function <<_config_write,weechat_config_write>>.
You should call this function only after adding some sections (with You should call this function only after adding some sections (with
<<_weechat_config_new_section,weechat_config_new_section>>) and options (with <<_config_new_section,weechat_config_new_section>>) and options (with
<<_weechat_config_new_option,weechat_config_new_option>>). <<_config_new_option,weechat_config_new_option>>).
C example: C example:
@ -4996,7 +4996,7 @@ Arguments:
[NOTE] [NOTE]
You can set value to null only if it is allowed for option (see You can set value to null only if it is allowed for option (see
<<_weechat_config_new_option,weechat_config_new_option>>). <<_config_new_option,weechat_config_new_option>>).
Return value: Return value:
@ -6311,7 +6311,7 @@ Add new key bindings.
[NOTE] [NOTE]
Unlike command `/key bind`, this function will never change an existing key Unlike command `/key bind`, this function will never change an existing key
binding, only new keys are created. To remove a key binding, use binding, only new keys are created. To remove a key binding, use
<<_weechat_key_unbind,weechat_key_unbind>>. <<_key_unbind,weechat_key_unbind>>.
Prototype: Prototype:
@ -6384,7 +6384,7 @@ int weechat_key_unbind (const char *context, const char *key);
Arguments: Arguments:
* 'context': context for keys (see <<_weechat_key_bind,weechat_key_bind>>) * 'context': context for keys (see <<_key_bind,weechat_key_bind>>)
* 'key': key to remove or a special value "area:XXX" to remove all keys having * 'key': key to remove or a special value "area:XXX" to remove all keys having
'XXX' as first or second area 'XXX' as first or second area
@ -7202,7 +7202,7 @@ WeeChat makes an automatic split of the command and its arguments (like the
shell does). + shell does). +
If the split is not correct (according to quotes in your command), or if you If the split is not correct (according to quotes in your command), or if you
want to use shell, you can use function want to use shell, you can use function
<<_weechat_hook_process_hashtable,weechat_hook_process_hashtable>> with <<_hook_process_hashtable,weechat_hook_process_hashtable>> with
arguments in the hashtable 'options' _(WeeChat ≥ 0.4.0)_. arguments in the hashtable 'options' _(WeeChat ≥ 0.4.0)_.
Prototype: Prototype:
@ -7255,7 +7255,7 @@ unhook (and kill process if it is still running).
The command can be an URL with format: "url:http://www.example.com", to download The command can be an URL with format: "url:http://www.example.com", to download
content of URL _(WeeChat ≥ 0.3.7)_. Options are possible for URL with content of URL _(WeeChat ≥ 0.3.7)_. Options are possible for URL with
function <<_weechat_hook_process_hashtable,weechat_hook_process_hashtable>>. function <<_hook_process_hashtable,weechat_hook_process_hashtable>>.
[TIP] [TIP]
If you want to retrieve infos about WeeChat (like current stable version, If you want to retrieve infos about WeeChat (like current stable version,
@ -7353,7 +7353,7 @@ struct t_hook *weechat_hook_process_hashtable (const char *command,
void *callback_data); void *callback_data);
---- ----
Arguments are the same as function <<_weechat_hook_process,weechat_hook_process>>, Arguments are the same as function <<_hook_process,weechat_hook_process>>,
with an extra argument: with an extra argument:
* 'options': options for command executed; the hashtable is duplicated in * 'options': options for command executed; the hashtable is duplicated in
@ -7377,7 +7377,7 @@ available:
_(WeeChat ≥ 0.4.3)_ | _(WeeChat ≥ 0.4.3)_ |
(not used) | (not used) |
Create a pipe for writing data on standard input (stdin) of child process Create a pipe for writing data on standard input (stdin) of child process
(see function <<_weechat_hook_set,weechat_hook_set>>) (see function <<_hook_set,weechat_hook_set>>)
| buffer_flush + | buffer_flush +
_(WeeChat ≥ 1.0)_ | _(WeeChat ≥ 1.0)_ |
@ -8524,7 +8524,7 @@ Arguments:
* 'signal': signal to send * 'signal': signal to send
* 'type_data': type of data sent with signal (see * 'type_data': type of data sent with signal (see
<<_weechat_hook_signal,weechat_hook_signal>>) <<_hook_signal,weechat_hook_signal>>)
* 'signal_data': data sent with signal * 'signal_data': data sent with signal
Return value _(WeeChat ≥ 1.0)_: Return value _(WeeChat ≥ 1.0)_:
@ -9154,7 +9154,7 @@ Arguments:
** 'struct t_gui_buffer *buffer': buffer where completion is made ** 'struct t_gui_buffer *buffer': buffer where completion is made
** 'struct t_gui_completion *completion': structure used to add words for ** 'struct t_gui_completion *completion': structure used to add words for
completion (see completion (see
<<_weechat_hook_completion_list_add,weechat_hook_completion_list_add>>) <<_hook_completion_list_add,weechat_hook_completion_list_add>>)
** return value: ** return value:
*** 'WEECHAT_RC_OK' *** 'WEECHAT_RC_OK'
*** 'WEECHAT_RC_ERROR' *** 'WEECHAT_RC_ERROR'
@ -9167,10 +9167,10 @@ recommended to choose a name with a unique prefix, like "plugin_xxx" (where
[IMPORTANT] [IMPORTANT]
The callback must only call function The callback must only call function
<<_weechat_hook_completion_list_add,weechat_hook_completion_list_add>> <<_hook_completion_list_add,weechat_hook_completion_list_add>>
and must *NOT* update the command line. + and must *NOT* update the command line. +
To update the command line when key[Tab] is pressed, you can use the function To update the command line when key[Tab] is pressed, you can use the function
<<_weechat_hook_command_run,weechat_hook_command_run>> with command: <<_hook_command_run,weechat_hook_command_run>> with command:
"/input complete_next" (and you must return 'WEECHAT_RC_OK_EAT' if your callback "/input complete_next" (and you must return 'WEECHAT_RC_OK_EAT' if your callback
has updated the command line, so that WeeChat will not perform the completion). has updated the command line, so that WeeChat will not perform the completion).
@ -9297,7 +9297,7 @@ Arguments:
** 'WEECHAT_LIST_POS_BEGINNING': beginning of list ** 'WEECHAT_LIST_POS_BEGINNING': beginning of list
** 'WEECHAT_LIST_POS_END': end of list ** 'WEECHAT_LIST_POS_END': end of list
C example: see <<_weechat_hook_completion,weechat_hook_completion>>. C example: see <<_hook_completion,weechat_hook_completion>>.
Script (Python): Script (Python):
@ -10734,7 +10734,7 @@ Properties:
"0" to prevent user from clearing buffer with the command `/buffer clear`, "0" to prevent user from clearing buffer with the command `/buffer clear`,
"1" to let user clear the buffer (default for a new buffer) "1" to let user clear the buffer (default for a new buffer)
(note: even when it is set to "0", the buffer can still be cleared with (note: even when it is set to "0", the buffer can still be cleared with
the function <<_weechat_buffer_clear,weechat_buffer_clear>>) the function <<_buffer_clear,weechat_buffer_clear>>)
| filter + | filter +
_(WeeChat ≥ 1.0)_ | "0" or "1" | _(WeeChat ≥ 1.0)_ | "0" or "1" |
@ -11810,7 +11810,7 @@ Properties:
| color | WeeChat color option name | | color | WeeChat color option name |
See argument "color" of function See argument "color" of function
<<_weechat_nicklist_add_group,weechat_nicklist_add_group>> <<_nicklist_add_group,weechat_nicklist_add_group>>
| visible | "0", "1" | | visible | "0", "1" |
"0" = hidden group, "1" = visible group "0" = hidden group, "1" = visible group
@ -12015,14 +12015,14 @@ Properties:
| color | WeeChat color option name | | color | WeeChat color option name |
See argument "color" of function See argument "color" of function
<<_weechat_nicklist_add_nick,weechat_nicklist_add_nick>> <<_nicklist_add_nick,weechat_nicklist_add_nick>>
| prefix | any string | | prefix | any string |
Prefix of nick Prefix of nick
| prefix_color | WeeChat color option name | | prefix_color | WeeChat color option name |
See argument "prefix_color" of function See argument "prefix_color" of function
<<_weechat_nicklist_add_nick,weechat_nicklist_add_nick>> <<_nicklist_add_nick,weechat_nicklist_add_nick>>
| visible | "0", "1" | | visible | "0", "1" |
"0" = hidden nick, "1" = visible nick "0" = hidden nick, "1" = visible nick
@ -12416,7 +12416,7 @@ Arguments:
* 'bar': bar pointer * 'bar': bar pointer
* 'property': name, hidden, priority, conditions, position, filling_top_bottom, * 'property': name, hidden, priority, conditions, position, filling_top_bottom,
filling_left_right, size, size_max, color_fg, color_delim, color_bg, filling_left_right, size, size_max, color_fg, color_delim, color_bg,
separator, items (see <<_weechat_bar_new,weechat_bar_new>>) separator, items (see <<_bar_new,weechat_bar_new>>)
* 'value': new value for property * 'value': new value for property
Return value: Return value:
@ -13595,7 +13595,7 @@ Functions for hdata (raw access to WeeChat or plugins data).
Hdata provides read-only access to data. It is *STRICTLY FORBIDDEN* to write Hdata provides read-only access to data. It is *STRICTLY FORBIDDEN* to write
something in memory pointed by hdata variables. + something in memory pointed by hdata variables. +
The only way to update data is to call function The only way to update data is to call function
<<_weechat_hdata_update,weechat_hdata_update>>. <<_hdata_update,weechat_hdata_update>>.
==== hdata_new ==== hdata_new
@ -13643,7 +13643,7 @@ Arguments:
** 'void *data': pointer ** 'void *data': pointer
** 'struct t_hdata *hdata': pointer to hdata ** 'struct t_hdata *hdata': pointer to hdata
** 'struct t_hashtable *hashtable': hashtable with variables to update ** 'struct t_hashtable *hashtable': hashtable with variables to update
(see <<_weechat_hdata_update,weechat_hdata_update>>) (see <<_hdata_update,weechat_hdata_update>>)
** return value: number of variables updated ** return value: number of variables updated
* 'callback_update_data': pointer given to update callback when it is called by * 'callback_update_data': pointer given to update callback when it is called by
WeeChat _(WeeChat ≥ 0.3.9)_ WeeChat _(WeeChat ≥ 0.3.9)_
@ -14255,7 +14255,7 @@ Arguments:
* 'hdata': hdata pointer * 'hdata': hdata pointer
* 'list': list pointer; if NULL _(WeeChat ≥ 1.0)_, the pointer is checked with * 'list': list pointer; if NULL _(WeeChat ≥ 1.0)_, the pointer is checked with
the lists in hdata that have flag "check pointers" (see the lists in hdata that have flag "check pointers" (see
<<_weechat_hdata_new_list,weechat_hdata_new_list>>), and if no such list <<_hdata_new_list,weechat_hdata_new_list>>), and if no such list
exists, the pointer is considered as valid exists, the pointer is considered as valid
* 'pointer': pointer to check * 'pointer': pointer to check
@ -14765,8 +14765,8 @@ Set new value for variable in a hdata.
[NOTE] [NOTE]
This function can be called only in an update callback This function can be called only in an update callback
(see <<_weechat_hdata_new,weechat_hdata_new>> and (see <<_hdata_new,weechat_hdata_new>> and
<<_weechat_hdata_update,weechat_hdata_update>>), if the variable can be updated. <<_hdata_update,weechat_hdata_update>>), if the variable can be updated.
Prototype: Prototype:

View File

@ -801,7 +801,7 @@ _WeeChat ≥ 0.4.2._
Retourner le nombre de caractères nécessaires pour afficher la chaîne UTF-8 Retourner le nombre de caractères nécessaires pour afficher la chaîne UTF-8
sur l'écran. sur l'écran.
Les caractères non affichables ont une longueur de 1 (c'est la différence avec Les caractères non affichables ont une longueur de 1 (c'est la différence avec
la fonction <<_weechat_utf8_strlen_screen,weechat_utf8_strlen_screen>>). la fonction <<_utf8_strlen_screen,weechat_utf8_strlen_screen>>).
Prototype : Prototype :
@ -1154,7 +1154,7 @@ _WeeChat ≥ 0.3.7._
Compiler une expression régulière avec des "flags" optionnels en début de chaîne Compiler une expression régulière avec des "flags" optionnels en début de chaîne
(pour le format des "flags", voir (pour le format des "flags", voir
<<_weechat_string_regex_flags,weechat_string_regex_flags>>). <<_string_regex_flags,weechat_string_regex_flags>>).
Prototype : Prototype :
@ -1332,7 +1332,7 @@ Paramètres :
* 'string' : chaîne * 'string' : chaîne
* 'regex' : pointeur vers une expression régulière (structure 'regex_t') * 'regex' : pointeur vers une expression régulière (structure 'regex_t')
compilée avec la fonction WeeChat compilée avec la fonction WeeChat
<<_weechat_string_regcomp,weechat_string_regcomp>> ou regcomp (voir <<_string_regcomp,weechat_string_regcomp>> ou regcomp (voir
`man regcomp`) `man regcomp`)
* 'replace' : texte de remplacement, où les références suivantes sont * 'replace' : texte de remplacement, où les références suivantes sont
autorisées : autorisées :
@ -1410,7 +1410,7 @@ Paramètres :
Valeur de retour : Valeur de retour :
* tableau de chaînes, NULL en cas de problème (doit être supprimé par un appel à * tableau de chaînes, NULL en cas de problème (doit être supprimé par un appel à
<<_weechat_string_free_split,weechat_string_free_split>> après utilisation) <<_string_free_split,weechat_string_free_split>> après utilisation)
Exemples en C : Exemples en C :
@ -1467,7 +1467,7 @@ Paramètres :
Valeur de retour : Valeur de retour :
* tableau de chaînes, NULL en cas de problème (doit être supprimé par un appel à * tableau de chaînes, NULL en cas de problème (doit être supprimé par un appel à
<<_weechat_string_free_split,weechat_string_free_split>> après utilisation) <<_string_free_split,weechat_string_free_split>> après utilisation)
Exemple en C : Exemple en C :
@ -1502,7 +1502,7 @@ void weechat_string_free_split (char **split_string);
Paramètres : Paramètres :
* 'split_string' : chaîne découpée par * 'split_string' : chaîne découpée par
<<_weechat_string_split,weechat_string_split>> <<_string_split,weechat_string_split>>
Exemple en C : Exemple en C :
@ -1533,7 +1533,7 @@ char *weechat_string_build_with_split_string (char **split_string
Paramètres : Paramètres :
* 'split_string' : chaîne découpée par la fonction * 'split_string' : chaîne découpée par la fonction
<<_weechat_string_split,weechat_string_split>> <<_string_split,weechat_string_split>>
* 'separator' : chaîne utilisée pour séparer les différentes chaînes * 'separator' : chaîne utilisée pour séparer les différentes chaînes
Valeur de retour : Valeur de retour :
@ -1577,7 +1577,7 @@ Paramètres :
Valeur de retour : Valeur de retour :
* tableau de chaînes, NULL en cas de problème (doit être supprimé par un appel à * tableau de chaînes, NULL en cas de problème (doit être supprimé par un appel à
<<_weechat_free_split_command,weechat_free_split_command>> après utilisation) <<_free_split_command,weechat_free_split_command>> après utilisation)
Exemple en C : Exemple en C :
@ -1607,7 +1607,7 @@ void weechat_string_free_split_command (char **split_command);
Paramètres : Paramètres :
* 'split_command' : commande découpée par * 'split_command' : commande découpée par
<<_weechat_string_split_command,weechat_string_split_command>> <<_string_split_command,weechat_string_split_command>>
Exemple en C : Exemple en C :
@ -1906,7 +1906,7 @@ Paramètres :
hachage (avec le pointer vers fenêtre/tampon courants) (peut être NULL) : hachage (avec le pointer vers fenêtre/tampon courants) (peut être NULL) :
** 'regex' : pointeur vers une expression régulière (structure 'regex_t') ** 'regex' : pointeur vers une expression régulière (structure 'regex_t')
compilée avec la fonction WeeChat compilée avec la fonction WeeChat
<<_weechat_string_regcomp,weechat_string_regcomp>> ou regcomp (voir <<_string_regcomp,weechat_string_regcomp>> ou regcomp (voir
`man regcomp`) ; cette option est similaire à 'regex' dans la table de `man regcomp`) ; cette option est similaire à 'regex' dans la table de
hachage 'options' (ci-dessous), mais est utilisée pour de meilleures hachage 'options' (ci-dessous), mais est utilisée pour de meilleures
performances performances
@ -1971,7 +1971,7 @@ première étendue à la dernière) :
| `${info:name}` + | `${info:name}` +
`${indo:name,arguments}` | `${indo:name,arguments}` |
Info de WeeChat ou d'une extension, voir la fonction Info de WeeChat ou d'une extension, voir la fonction
<<_weechat_info_get,weechat_info_get>> | <<_info_get,weechat_info_get>> |
`${info:version}` + `${info:version}` +
`${info:irc_nick_color_name,foo}` | `${info:irc_nick_color_name,foo}` |
`1.0` + `1.0` +
@ -4198,10 +4198,10 @@ Valeur de retour :
[NOTE] [NOTE]
Le fichier n'est PAS créé sur le disque par cette fonction. Il sera créé par Le fichier n'est PAS créé sur le disque par cette fonction. Il sera créé par
l'appel à la fonction <<_weechat_config_write,weechat_config_write>>. l'appel à la fonction <<_config_write,weechat_config_write>>.
Vous ne devriez appeler cette fonction qu'après avoir créé les sections (avec Vous ne devriez appeler cette fonction qu'après avoir créé les sections (avec
<<_weechat_config_new_section,weechat_config_new_section>>) et les options (avec <<_config_new_section,weechat_config_new_section>>) et les options (avec
<<_weechat_config_new_option,weechat_config_new_option>>). <<_config_new_option,weechat_config_new_option>>).
Exemple en C : Exemple en C :
@ -5074,7 +5074,7 @@ Paramètres :
[NOTE] [NOTE]
Vous pouvez affecter "null" à une option seulement si c'est autorisé pour Vous pouvez affecter "null" à une option seulement si c'est autorisé pour
l'option (voir <<_weechat_config_new_option,weechat_config_new_option>>). l'option (voir <<_config_new_option,weechat_config_new_option>>).
Valeur de retour : Valeur de retour :
@ -6404,7 +6404,7 @@ Ajouter de nouvelles associations de touches.
Contrairement à la commande `/key bind`, cette fonction ne changera jamais Contrairement à la commande `/key bind`, cette fonction ne changera jamais
une association de touche existante, seulement des nouvelles touches seront une association de touche existante, seulement des nouvelles touches seront
créées. Pour supprimer une association de touche, utilisez créées. Pour supprimer une association de touche, utilisez
<<_weechat_key_unbind,weechat_key_unbind>>. <<_key_unbind,weechat_key_unbind>>.
Prototype : Prototype :
@ -6480,7 +6480,7 @@ int weechat_key_unbind (const char *context, const char *key);
Paramètres : Paramètres :
* 'context' : contexte pour les touches (voir * 'context' : contexte pour les touches (voir
<<_weechat_key_bind,weechat_key_bind>>) <<_key_bind,weechat_key_bind>>)
* 'key' : touche à supprimer ou la valeur spéciale "area:XXX" pour supprimer * 'key' : touche à supprimer ou la valeur spéciale "area:XXX" pour supprimer
toutes les touches ayant 'XXX' comme première ou deuxième zone toutes les touches ayant 'XXX' comme première ou deuxième zone
@ -7323,7 +7323,7 @@ commande. WeeChat effectue un découpage automatique de la commande et de ses
paramètres (comme le fait le shell). + paramètres (comme le fait le shell). +
Si le découpage n'est pas correct (selon les guillemets utilisés dans votre Si le découpage n'est pas correct (selon les guillemets utilisés dans votre
commande), ou si vous souhaitez utiliser le shell, vous pouvez utiliser la commande), ou si vous souhaitez utiliser le shell, vous pouvez utiliser la
fonction <<_weechat_hook_process_hashtable,weechat_hook_process_hashtable>> avec fonction <<_hook_process_hashtable,weechat_hook_process_hashtable>> avec
les paramètres dans la table de hachage 'options' _(WeeChat ≥ 0.4.0)_. les paramètres dans la table de hachage 'options' _(WeeChat ≥ 0.4.0)_.
Prototype : Prototype :
@ -7381,7 +7381,7 @@ toujours).
La commande peut être une URL avec le format : "url:http://www.example.com", La commande peut être une URL avec le format : "url:http://www.example.com",
pour télécharger le contenu de l'URL _(WeeChat ≥ 0.3.7)_. pour télécharger le contenu de l'URL _(WeeChat ≥ 0.3.7)_.
Des options pour l'URL sont possibles avec la fonction Des options pour l'URL sont possibles avec la fonction
<<_weechat_hook_process_hashtable,weechat_hook_process_hashtable>>. <<_hook_process_hashtable,weechat_hook_process_hashtable>>.
[TIP] [TIP]
Si vous souhaitez récupérer des infos à propos de WeeChat (comme la version Si vous souhaitez récupérer des infos à propos de WeeChat (comme la version
@ -7482,7 +7482,7 @@ struct t_hook *weechat_hook_process_hashtable (const char *command,
---- ----
Les paramètres sont les mêmes que ceux de la fonction Les paramètres sont les mêmes que ceux de la fonction
<<_weechat_hook_process,weechat_hook_process>>, avec un paramètre <<_hook_process,weechat_hook_process>>, avec un paramètre
supplémentaire : supplémentaire :
* 'options' : options pour la commande exécutée; la table de hachage est * 'options' : options pour la commande exécutée; la table de hachage est
@ -7507,7 +7507,7 @@ sont disponibles :
_(WeeChat ≥ 0.4.3)_ | _(WeeChat ≥ 0.4.3)_ |
(non utilisée) | (non utilisée) |
Créer un tuyau pour écrire sur l'entrée standard (stdin) du processus fils Créer un tuyau pour écrire sur l'entrée standard (stdin) du processus fils
(voir la fonction <<_weechat_hook_set,weechat_hook_set>>) (voir la fonction <<_hook_set,weechat_hook_set>>)
| buffer_flush + | buffer_flush +
_(WeeChat ≥ 1.0)_ | _(WeeChat ≥ 1.0)_ |
@ -8671,7 +8671,7 @@ Paramètres :
* 'signal' : signal à envoyer * 'signal' : signal à envoyer
* 'type_data' : type de données à envoyer avec le signal (voir * 'type_data' : type de données à envoyer avec le signal (voir
<<_weechat_hook_signal,weechat_hook_signal>>) <<_hook_signal,weechat_hook_signal>>)
* 'signal_data' : données envoyées avec le signal * 'signal_data' : données envoyées avec le signal
Valeur de retour _(WeeChat ≥ 1.0)_ : Valeur de retour _(WeeChat ≥ 1.0)_ :
@ -9323,7 +9323,7 @@ Paramètres :
** 'struct t_gui_buffer *buffer' : tampon où la complétion est effectuée ** 'struct t_gui_buffer *buffer' : tampon où la complétion est effectuée
** 'struct t_gui_completion *completion' : structure utilisée pour ajouter ** 'struct t_gui_completion *completion' : structure utilisée pour ajouter
les mots pour la complétion (voir les mots pour la complétion (voir
<<_weechat_hook_completion_list_add,weechat_hook_completion_list_add>>) <<_hook_completion_list_add,weechat_hook_completion_list_add>>)
** valeur de retour : ** valeur de retour :
*** 'WEECHAT_RC_OK' *** 'WEECHAT_RC_OK'
*** 'WEECHAT_RC_ERROR' *** 'WEECHAT_RC_ERROR'
@ -9337,10 +9337,10 @@ Il est donc recommandé de choisir un nom avec un préfixe unique, comme
[IMPORTANT] [IMPORTANT]
Le "callback" doit seulement appeler la fonction Le "callback" doit seulement appeler la fonction
<<_weechat_hook_completion_list_add,weechat_hook_completion_list_add>> <<_hook_completion_list_add,weechat_hook_completion_list_add>>
et ne doit *PAS* mettre à jour la ligne de commande. + et ne doit *PAS* mettre à jour la ligne de commande. +
Pour mettre à jour la ligne de commande quand key[Tab] est pressé, vous pouvez Pour mettre à jour la ligne de commande quand key[Tab] est pressé, vous pouvez
utiliser la fonction <<_weechat_hook_command_run,weechat_hook_command_run>> utiliser la fonction <<_hook_command_run,weechat_hook_command_run>>
avec la commande : "/input complete_next" (et vous devez retourner avec la commande : "/input complete_next" (et vous devez retourner
'WEECHAT_RC_OK_EAT' si votre "callback" a mis à jour la ligne de commande, de 'WEECHAT_RC_OK_EAT' si votre "callback" a mis à jour la ligne de commande, de
sorte que WeeChat n'exécute pas la complétion). sorte que WeeChat n'exécute pas la complétion).
@ -9468,7 +9468,7 @@ Paramètres :
** 'WEECHAT_LIST_POS_BEGINNING' : au début de la liste ** 'WEECHAT_LIST_POS_BEGINNING' : au début de la liste
** 'WEECHAT_LIST_POS_END' : à la fin de la liste ** 'WEECHAT_LIST_POS_END' : à la fin de la liste
Exemple en C : voir <<_weechat_hook_completion,weechat_hook_completion>>. Exemple en C : voir <<_hook_completion,weechat_hook_completion>>.
Script (Python) : Script (Python) :
@ -10946,7 +10946,7 @@ Propriétés :
`/buffer clear`, "1" pour autoriser l'utilisateur à effacer le tampon (par `/buffer clear`, "1" pour autoriser l'utilisateur à effacer le tampon (par
défaut pour un nouveau tampon) (note : même lorsque la valeur est "0", le défaut pour un nouveau tampon) (note : même lorsque la valeur est "0", le
tampon peut toujours être effacé avec la fonction tampon peut toujours être effacé avec la fonction
<<_weechat_buffer_clear,weechat_buffer_clear>>) <<_buffer_clear,weechat_buffer_clear>>)
| filter + | filter +
_(WeeChat ≥ 1.0)_ | "0" or "1" | _(WeeChat ≥ 1.0)_ | "0" or "1" |
@ -12044,7 +12044,7 @@ Propriétés :
| color | nom d'option de couleur WeeChat | | color | nom d'option de couleur WeeChat |
Voir le paramètre "color" de la fonction Voir le paramètre "color" de la fonction
<<_weechat_nicklist_add_group,weechat_nicklist_add_group>> <<_nicklist_add_group,weechat_nicklist_add_group>>
| visible | "0", "1" | | visible | "0", "1" |
"0" = groupe caché, "1" = groupe visible "0" = groupe caché, "1" = groupe visible
@ -12249,14 +12249,14 @@ Propriétés :
| color | nom d'option de couleur WeeChat | | color | nom d'option de couleur WeeChat |
Voir le paramètre "color" de la fonction Voir le paramètre "color" de la fonction
<<_weechat_nicklist_add_nick,weechat_nicklist_add_nick>> <<_nicklist_add_nick,weechat_nicklist_add_nick>>
| prefix | toute chaîne | | prefix | toute chaîne |
Préfixe du pseudo Préfixe du pseudo
| prefix_color | nom d'option de couleur WeeChat | | prefix_color | nom d'option de couleur WeeChat |
Voir le paramètre "prefix_color" de la fonction Voir le paramètre "prefix_color" de la fonction
<<_weechat_nicklist_add_nick,weechat_nicklist_add_nick>> <<_nicklist_add_nick,weechat_nicklist_add_nick>>
| visible | "0", "1" | | visible | "0", "1" |
"0" = pseudo caché, "1" = pseudo visible "0" = pseudo caché, "1" = pseudo visible
@ -12664,7 +12664,7 @@ Paramètres :
* 'bar' : pointeur vers la barre * 'bar' : pointeur vers la barre
* 'property' : name, hidden, priority, conditions, position, filling_top_bottom, * 'property' : name, hidden, priority, conditions, position, filling_top_bottom,
filling_left_right, size, size_max, color_fg, color_delim, color_bg, filling_left_right, size, size_max, color_fg, color_delim, color_bg,
separator, items (voir <<_weechat_bar_new,weechat_bar_new>>) separator, items (voir <<_bar_new,weechat_bar_new>>)
* 'value' : nouvelle valeur pour la propriété * 'value' : nouvelle valeur pour la propriété
Valeur de retour : Valeur de retour :
@ -13859,7 +13859,7 @@ Le "hdata" fournit seulement un accès en lecture seule aux données. Il est
*STRICTEMENT INTERDIT* d'écrire quelque chose dans une zone mémoire pointée par *STRICTEMENT INTERDIT* d'écrire quelque chose dans une zone mémoire pointée par
les variables du hdata. + les variables du hdata. +
Le seul moyen pour mettre à jour des données est d'appeler la fonction Le seul moyen pour mettre à jour des données est d'appeler la fonction
<<_weechat_hdata_update,weechat_hdata_update>>. <<_hdata_update,weechat_hdata_update>>.
==== hdata_new ==== hdata_new
@ -13912,7 +13912,7 @@ Paramètres :
** 'void *data' : pointeur ** 'void *data' : pointeur
** 'struct t_hdata *hdata' : pointeur vers le hdata ** 'struct t_hdata *hdata' : pointeur vers le hdata
** 'struct t_hashtable *hashtable' : table de hachage avec les variables à ** 'struct t_hashtable *hashtable' : table de hachage avec les variables à
mettre à jour (voir <<_weechat_hdata_update,weechat_hdata_update>>) mettre à jour (voir <<_hdata_update,weechat_hdata_update>>)
** valeur de retour : nombre de variables mises à jour ** valeur de retour : nombre de variables mises à jour
* 'callback_update_data' : pointeur donné au "callback" lorsqu'il est appelé par * 'callback_update_data' : pointeur donné au "callback" lorsqu'il est appelé par
WeeChat _(WeeChat ≥ 0.3.9)_ WeeChat _(WeeChat ≥ 0.3.9)_
@ -14532,7 +14532,7 @@ Paramètres :
* 'list' : pointeur vers une liste; si NULL _(WeeChat ≥ 1.0)_, le pointeur est * 'list' : pointeur vers une liste; si NULL _(WeeChat ≥ 1.0)_, le pointeur est
vérifié avec les listes dans le hdata qui ont le drapeau vérifié avec les listes dans le hdata qui ont le drapeau
"vérifier les pointeurs" (voir "vérifier les pointeurs" (voir
<<_weechat_hdata_new_list,weechat_hdata_new_list>>), et s'il n'y a pas de <<_hdata_new_list,weechat_hdata_new_list>>), et s'il n'y a pas de
telle liste, le pointeur est considéré comme valide telle liste, le pointeur est considéré comme valide
* 'pointer' : pointeur à vérifier * 'pointer' : pointeur à vérifier
@ -15057,8 +15057,8 @@ Définir une nouvelle valeur pour une variable dans un hdata.
[NOTE] [NOTE]
Cette fonction ne peut être appelée que dans un "callback" de mise à jour Cette fonction ne peut être appelée que dans un "callback" de mise à jour
(voir <<_weechat_hdata_new,weechat_hdata_new>> et (voir <<_hdata_new,weechat_hdata_new>> et
<<_weechat_hdata_update,weechat_hdata_update>>), si la variable peut être mise à <<_hdata_update,weechat_hdata_update>>), si la variable peut être mise à
jour. jour.
Prototype : Prototype :

View File

@ -825,7 +825,7 @@ Restituisce il numero di caratteri necessari per visualizzare la stringa
UTF-8 su schermo. UTF-8 su schermo.
// TRANSLATION MISSING // TRANSLATION MISSING
Non-printable chars have a width of 1 (this is the difference with the function Non-printable chars have a width of 1 (this is the difference with the function
<<_weechat_utf8_strlen_screen,weechat_utf8_strlen_screen>>). <<_utf8_strlen_screen,weechat_utf8_strlen_screen>>).
Prototipo: Prototipo:
@ -1185,7 +1185,7 @@ _WeeChat ≥ 0.3.7._
// TRANSLATION MISSING // TRANSLATION MISSING
Compile a POSIX extended regular expression using optional flags at beginning Compile a POSIX extended regular expression using optional flags at beginning
of string (for format of flags, see of string (for format of flags, see
<<_weechat_string_regex_flags,weechat_string_regex_flags>>). <<_string_regex_flags,weechat_string_regex_flags>>).
Prototipo: Prototipo:
@ -1368,7 +1368,7 @@ Argomenti:
// TRANSLATION MISSING // TRANSLATION MISSING
* 'string': string * 'string': string
* 'regex': pointer to a regular expression ('regex_t' structure) compiled with * 'regex': pointer to a regular expression ('regex_t' structure) compiled with
WeeChat function <<_weechat_string_regcomp,weechat_string_regcomp>> or regcomp WeeChat function <<_string_regcomp,weechat_string_regcomp>> or regcomp
(see `man regcomp`) (see `man regcomp`)
* 'replace': replacement text, where following references are allowed: * 'replace': replacement text, where following references are allowed:
** `$0` to `$99`: match 0 to 99 in regular expression (0 is the whole match, ** `$0` to `$99`: match 0 to 99 in regular expression (0 is the whole match,
@ -1441,7 +1441,7 @@ Argomenti:
Valore restituito: Valore restituito:
* array di stringhe, NULL se si verifica un problema (deve essere liberata chiamando * array di stringhe, NULL se si verifica un problema (deve essere liberata chiamando
<<_weechat_string_free_split,weechat_string_free_split>> dopo l'uso) <<_string_free_split,weechat_string_free_split>> dopo l'uso)
Esempi: Esempi:
@ -1497,7 +1497,7 @@ Argomenti:
Valore restituito: Valore restituito:
* array di stringhe, NULL se si verifica un problema (deve essere liberata chiamando * array di stringhe, NULL se si verifica un problema (deve essere liberata chiamando
<<_weechat_string_free_split,weechat_string_free_split>> dopo l'uso) <<_string_free_split,weechat_string_free_split>> dopo l'uso)
Esempio in C: Esempio in C:
@ -1532,7 +1532,7 @@ void weechat_string_free_split (char **split_string);
Argomenti: Argomenti:
* 'split_string': stringa divisa dalla funzione * 'split_string': stringa divisa dalla funzione
<<_weechat_string_split,weechat_string_split>> <<_string_split,weechat_string_split>>
Esempio in C: Esempio in C:
@ -1563,7 +1563,7 @@ char *weechat_string_build_with_split_string (char **split_string,
Argomenti: Argomenti:
* 'split_string': stringa divisa dalla funzione * 'split_string': stringa divisa dalla funzione
<<_weechat_string_split,weechat_string_split>> <<_string_split,weechat_string_split>>
* 'separator': stringa usata per separare le stringhe * 'separator': stringa usata per separare le stringhe
Valore restituito: Valore restituito:
@ -1607,7 +1607,7 @@ Argomenti:
Valore restituito: Valore restituito:
* array di stringhe, NULL in caso di problemi (deve essere liberata chiamando * array di stringhe, NULL in caso di problemi (deve essere liberata chiamando
<<_weechat_free_split_command,weechat_free_split_command>> dopo l'uso) <<_free_split_command,weechat_free_split_command>> dopo l'uso)
Esempio in C: Esempio in C:
@ -1637,7 +1637,7 @@ void weechat_string_free_split_command (char **split_command);
Argomenti: Argomenti:
* 'split_command': comando diviso da * 'split_command': comando diviso da
<<_weechat_string_split_command,weechat_string_split_command>> <<_string_split_command,weechat_string_split_command>>
Esempio in C: Esempio in C:
@ -1935,7 +1935,7 @@ Argomenti:
pointer); pointers "window" and "buffer" are automatically added if they are pointer); pointers "window" and "buffer" are automatically added if they are
not in hashtable (with pointer to current window/buffer) (can be NULL): not in hashtable (with pointer to current window/buffer) (can be NULL):
** 'regex': pointer to a regular expression ('regex_t' structure) compiled with ** 'regex': pointer to a regular expression ('regex_t' structure) compiled with
WeeChat function <<_weechat_string_regcomp,weechat_string_regcomp>> or WeeChat function <<_string_regcomp,weechat_string_regcomp>> or
regcomp (see `man regcomp`); this option is similar to 'regex' in hashtable regcomp (see `man regcomp`); this option is similar to 'regex' in hashtable
'options' (below), but is used for better performance 'options' (below), but is used for better performance
* 'extra_vars': extra variables that will be expanded (can be NULL) * 'extra_vars': extra variables that will be expanded (can be NULL)
@ -1999,7 +1999,7 @@ expanded to last):
| `${info:name}` + | `${info:name}` +
`${indo:name,arguments}` | `${indo:name,arguments}` |
Info from WeeChat or a plugin, see function Info from WeeChat or a plugin, see function
<<_weechat_info_get,weechat_info_get>> | <<_info_get,weechat_info_get>> |
`${info:version}` + `${info:version}` +
`${info:irc_nick_color_name,foo}` | `${info:irc_nick_color_name,foo}` |
`1.0` + `1.0` +
@ -4237,10 +4237,10 @@ Valore restituito:
[NOTE] [NOTE]
Il file NON viene creato su disco da questa funzione. Verrà creato chiamando Il file NON viene creato su disco da questa funzione. Verrà creato chiamando
la funzione <<_weechat_config_write,weechat_config_write>>. la funzione <<_config_write,weechat_config_write>>.
Si dovrebbe chiamare questa funzione solo dopo aver aggiunto alcune sezioni Si dovrebbe chiamare questa funzione solo dopo aver aggiunto alcune sezioni
(con <<_weechat_config_new_section,weechat_config_new_section>>) e le (con <<_config_new_section,weechat_config_new_section>>) e le
opzioni (con <<_weechat_config_new_option,weechat_config_new_option>>). opzioni (con <<_config_new_option,weechat_config_new_option>>).
Esempio in C: Esempio in C:
@ -5107,7 +5107,7 @@ Argomenti:
[NOTE] [NOTE]
È possibile impostare il valore a null solo se è consentito per l'opzione È possibile impostare il valore a null solo se è consentito per l'opzione
(consultare <<_weechat_config_new_option,weechat_config_new_option>>). (consultare <<_config_new_option,weechat_config_new_option>>).
Valore restituito: Valore restituito:
@ -6431,7 +6431,7 @@ Aggiunge una nuova combinazione tasto.
[NOTE] [NOTE]
A differenza del comando `/key bind`, questa funzione non cambia mai una A differenza del comando `/key bind`, questa funzione non cambia mai una
combinazione tasti esistente, ma ne vengono create di nuove. Per rimuovere combinazione tasti esistente, ma ne vengono create di nuove. Per rimuovere
una combinazione tasti, usare <<_weechat_key_unbind,weechat_key_unbind>>. una combinazione tasti, usare <<_key_unbind,weechat_key_unbind>>.
Prototipo: Prototipo:
@ -6505,7 +6505,7 @@ int weechat_key_unbind (const char *context, const char *key);
Argomenti: Argomenti:
* 'context': contesto per i tasti (consultare <<_weechat_key_bind,weechat_key_bind>>) * 'context': contesto per i tasti (consultare <<_key_bind,weechat_key_bind>>)
* 'key': tasto da rimuovere o un valore speciale "area:XXX" per rimuovere tutti * 'key': tasto da rimuovere o un valore speciale "area:XXX" per rimuovere tutti
i tasti che hanno 'XXX' come prima o seconda area i tasti che hanno 'XXX' come prima o seconda area
@ -7347,7 +7347,7 @@ Since version 0.3.9.2, the shell is not used any more to execute the command.
WeeChat makes an automatic split of command and arguments (like the shell does). WeeChat makes an automatic split of command and arguments (like the shell does).
If the split is not correct (according to quotes in your command), or if you If the split is not correct (according to quotes in your command), or if you
want to use shell, you can use function want to use shell, you can use function
<<_weechat_hook_process_hashtable,weechat_hook_process_hashtable>> with <<_hook_process_hashtable,weechat_hook_process_hashtable>> with
arguments in the hashtable 'options' _(WeeChat ≥ 0.4.0)_. arguments in the hashtable 'options' _(WeeChat ≥ 0.4.0)_.
Prototipo: Prototipo:
@ -7403,7 +7403,7 @@ effettua automaticamente l'unhook (e termina il processo se ancora in esecuzione
Il comando può essere un URL con il formato: "url:http://www.esempio.com", per Il comando può essere un URL con il formato: "url:http://www.esempio.com", per
scaricare il contenuto dell'URL _(WeeChat ≥ 0.3.7)_. Le opzioni per scaricare il contenuto dell'URL _(WeeChat ≥ 0.3.7)_. Le opzioni per
un URL sono disponibili con la funzione un URL sono disponibili con la funzione
<<_weechat_hook_process_hashtable,weechat_hook_process_hashtable>>. <<_hook_process_hashtable,weechat_hook_process_hashtable>>.
// TRANSLATION MISSING // TRANSLATION MISSING
[TIP] [TIP]
@ -7504,7 +7504,7 @@ struct t_hook *weechat_hook_process_hashtable (const char *command,
---- ----
Gli argomenti sono gli stessi della funzione Gli argomenti sono gli stessi della funzione
<<_weechat_hook_process,weechat_hook_process>>, con un argomento aggiuntivo: <<_hook_process,weechat_hook_process>>, con un argomento aggiuntivo:
* 'options': le opzioni per il comando eseguito; la tabella hash è duplicata * 'options': le opzioni per il comando eseguito; la tabella hash è duplicata
nella funzione, per cui è possibile liberarla dopo questa chiamata nella funzione, per cui è possibile liberarla dopo questa chiamata
@ -7531,7 +7531,7 @@ available:
_(WeeChat ≥ 0.4.3)_ | _(WeeChat ≥ 0.4.3)_ |
(not used) | (not used) |
Create a pipe for writing data on standard input (stdin) of child process Create a pipe for writing data on standard input (stdin) of child process
(see function <<_weechat_hook_set,weechat_hook_set>>) (see function <<_hook_set,weechat_hook_set>>)
// TRANSLATION MISSING // TRANSLATION MISSING
| buffer_flush + | buffer_flush +
@ -8767,7 +8767,7 @@ Argomenti:
* 'signal': segnale da inviare * 'signal': segnale da inviare
* 'type_data': tipo di dati inviati con il segnale (consultare * 'type_data': tipo di dati inviati con il segnale (consultare
<<_weechat_hook_signal,weechat_hook_signal>>) <<_hook_signal,weechat_hook_signal>>)
* 'signal_data': dati inviati con il segnale * 'signal_data': dati inviati con il segnale
// TRANSLATION MISSING // TRANSLATION MISSING
@ -9425,7 +9425,7 @@ Argomenti:
** 'struct t_gui_buffer *buffer': buffer dove viene eseguito il completamento ** 'struct t_gui_buffer *buffer': buffer dove viene eseguito il completamento
** 'struct t_gui_completion *completion': struttura usata per aggiungere ** 'struct t_gui_completion *completion': struttura usata per aggiungere
parole per il completamento (consultare parole per il completamento (consultare
<<_weechat_hook_completion_list_add,weechat_hook_completion_list_add>>) <<_hook_completion_list_add,weechat_hook_completion_list_add>>)
** valore restituito: ** valore restituito:
*** 'WEECHAT_RC_OK' *** 'WEECHAT_RC_OK'
*** 'WEECHAT_RC_ERROR' *** 'WEECHAT_RC_ERROR'
@ -9439,10 +9439,10 @@ raccomanda pertanto di scegliere un nome con un prefisso unico, come
// TRANSLATION MISSING // TRANSLATION MISSING
[IMPORTANT] [IMPORTANT]
The callback must only call function The callback must only call function
<<_weechat_hook_completion_list_add,weechat_hook_completion_list_add>> <<_hook_completion_list_add,weechat_hook_completion_list_add>>
and must *NOT* update the command line. + and must *NOT* update the command line. +
To update the command line when key[Tab] is pressed, you can use the function To update the command line when key[Tab] is pressed, you can use the function
<<_weechat_hook_command_run,weechat_hook_command_run>> with command: <<_hook_command_run,weechat_hook_command_run>> with command:
"/input complete_next" (and you must return 'WEECHAT_RC_OK_EAT' if your callback "/input complete_next" (and you must return 'WEECHAT_RC_OK_EAT' if your callback
has updated the command line, so that WeeChat will not perform the completion). has updated the command line, so that WeeChat will not perform the completion).
@ -9570,7 +9570,7 @@ Argomenti:
** 'WEECHAT_LIST_POS_BEGINNING': inizio della lista ** 'WEECHAT_LIST_POS_BEGINNING': inizio della lista
** 'WEECHAT_LIST_POS_END': fine della lista ** 'WEECHAT_LIST_POS_END': fine della lista
Esempio in C: consultare <<_weechat_hook_completion,weechat_hook_completion>>. Esempio in C: consultare <<_hook_completion,weechat_hook_completion>>.
Script (Python): Script (Python):
@ -11067,7 +11067,7 @@ Properties:
"0" to prevent user from clearing buffer with the command `/buffer clear`, "0" to prevent user from clearing buffer with the command `/buffer clear`,
"1" to let user clear the buffer (default for a new buffer) "1" to let user clear the buffer (default for a new buffer)
(note: even when it is set to "0", the buffer can still be cleared with (note: even when it is set to "0", the buffer can still be cleared with
the function <<_weechat_buffer_clear,weechat_buffer_clear>>) the function <<_buffer_clear,weechat_buffer_clear>>)
// TRANSLATION MISSING // TRANSLATION MISSING
| filter + | filter +
@ -12168,7 +12168,7 @@ Properties:
| color | nome per l'opzione del colore per WeeChat | | color | nome per l'opzione del colore per WeeChat |
Consultare l'argomento "color" della funzione Consultare l'argomento "color" della funzione
<<_weechat_nicklist_add_group,weechat_nicklist_add_group>> <<_nicklist_add_group,weechat_nicklist_add_group>>
| visible | "0", "1" | | visible | "0", "1" |
"0" = gruppo nascosto, "1" = gruppo visibile "0" = gruppo nascosto, "1" = gruppo visibile
@ -12376,14 +12376,14 @@ Properties:
| color | nome per l'opzione del colore di WeeChat | | color | nome per l'opzione del colore di WeeChat |
Consultare l'argomento "color" della funzione Consultare l'argomento "color" della funzione
<<_weechat_nicklist_add_nick,weechat_nicklist_add_nick>> <<_nicklist_add_nick,weechat_nicklist_add_nick>>
| prefix | qualsiasi stringa | | prefix | qualsiasi stringa |
Prefisso del nick Prefisso del nick
| prefix_color | nome per l'opzione del colore di WeeChat | | prefix_color | nome per l'opzione del colore di WeeChat |
Consultare l'argomento "prefix_color" della funzione Consultare l'argomento "prefix_color" della funzione
<<_weechat_nicklist_add_nick,weechat_nicklist_add_nick>> <<_nicklist_add_nick,weechat_nicklist_add_nick>>
| visible | "0", "1" | | visible | "0", "1" |
"0" = nick nascosto, "1" = nick visibile "0" = nick nascosto, "1" = nick visibile
@ -12795,7 +12795,7 @@ Argomenti:
* 'bar': puntatore alla barra * 'bar': puntatore alla barra
* 'property': name, hidden, priority, conditions, position, filling_top_bottom, * 'property': name, hidden, priority, conditions, position, filling_top_bottom,
filling_left_right, size, size_max, color_fg, color_delim, color_bg, filling_left_right, size, size_max, color_fg, color_delim, color_bg,
separator, items (consultare <<_weechat_bar_new,weechat_bar_new>>) separator, items (consultare <<_bar_new,weechat_bar_new>>)
* 'value': nuovo valore per la proprietà * 'value': nuovo valore per la proprietà
Valore restituito: Valore restituito:
@ -14011,7 +14011,7 @@ Funzioni per hdata (accesso raw a WeeChat o ai dati dei plugin).
Hdata fornisce un accesso in sola lettura ai dati. È *SEVERAMENTE VIETATO* Hdata fornisce un accesso in sola lettura ai dati. È *SEVERAMENTE VIETATO*
scrivere qualcosa in memoria puntato dalle variabili in hdata. + scrivere qualcosa in memoria puntato dalle variabili in hdata. +
The only way to update data is to call function The only way to update data is to call function
<<_weechat_hdata_update,weechat_hdata_update>>. <<_hdata_update,weechat_hdata_update>>.
==== hdata_new ==== hdata_new
@ -14064,7 +14064,7 @@ Argomenti:
** 'void *data': pointer ** 'void *data': pointer
** 'struct t_hdata *hdata': pointer to hdata ** 'struct t_hdata *hdata': pointer to hdata
** 'struct t_hashtable *hashtable': hashtable with variables to update ** 'struct t_hashtable *hashtable': hashtable with variables to update
(see <<_weechat_hdata_update,weechat_hdata_update>>) (see <<_hdata_update,weechat_hdata_update>>)
** return value: number of variables updated ** return value: number of variables updated
// TRANSLATION MISSING // TRANSLATION MISSING
* 'callback_update_data': pointer given to update callback when it is called by * 'callback_update_data': pointer given to update callback when it is called by
@ -14690,7 +14690,7 @@ Argomenti:
// TRANSLATION MISSING // TRANSLATION MISSING
* 'list': puntatore alla lista; if NULL _(WeeChat ≥ 1.0)_, the pointer is * 'list': puntatore alla lista; if NULL _(WeeChat ≥ 1.0)_, the pointer is
checked with the lists in hdata that have flag "check pointers" (see checked with the lists in hdata that have flag "check pointers" (see
<<_weechat_hdata_new_list,weechat_hdata_new_list>>), and if no such list <<_hdata_new_list,weechat_hdata_new_list>>), and if no such list
exists, the pointer is considered as valid exists, the pointer is considered as valid
* 'pointer': puntatore da verificare * 'pointer': puntatore da verificare
@ -15221,8 +15221,8 @@ Set new value for variable in a hdata.
[NOTE] [NOTE]
This function can be called only in an update callback This function can be called only in an update callback
(see <<_weechat_hdata_new,weechat_hdata_new>> and (see <<_hdata_new,weechat_hdata_new>> and
<<_weechat_hdata_update,weechat_hdata_update>>), if the variable can be updated. <<_hdata_update,weechat_hdata_update>>), if the variable can be updated.
Prototipo: Prototipo:

View File

@ -795,7 +795,7 @@ _WeeChat バージョン 0.4.2 以上で利用可。_
UTF-8 文字列をスクリーン上に表示するために必要なスクリーン幅を返す。非表示文字を UTF-8 文字列をスクリーン上に表示するために必要なスクリーン幅を返す。非表示文字を
1 文字として数えます (これが 1 文字として数えます (これが
<<_weechat_utf8_strlen_screen,weechat_utf8_strlen_screen>> 関数との違いです)。 <<_utf8_strlen_screen,weechat_utf8_strlen_screen>> 関数との違いです)。
プロトタイプ: プロトタイプ:
@ -1139,7 +1139,7 @@ _WeeChat バージョン 0.3.7 以上で利用可。_
文字列の最初に含まれるオプションフラグを使って POSIX 文字列の最初に含まれるオプションフラグを使って POSIX
拡張正規表現をコンパイル (フラグのフォーマットについては 拡張正規表現をコンパイル (フラグのフォーマットについては
<<_weechat_string_regex_flags,weechat_string_regex_flags>> を参照)。 <<_string_regex_flags,weechat_string_regex_flags>> を参照)。
プロトタイプ: プロトタイプ:
@ -1313,7 +1313,7 @@ char *weechat_string_replace_regex (const char *string, void *regex,
引数: 引数:
* 'string': 文字列 * 'string': 文字列
* 'regex': WeeChat 関数 <<_weechat_string_regcomp,weechat_string_regcomp>> * 'regex': WeeChat 関数 <<_string_regcomp,weechat_string_regcomp>>
または regcomp (`man regcomp` を参照) または regcomp (`man regcomp` を参照)
でコンパイルした正規表現へのポインタ ('regex_t' 構造体) でコンパイルした正規表現へのポインタ ('regex_t' 構造体)
* 'replace': 置換先テキスト、以下のリファレンスを使うことができます: * 'replace': 置換先テキスト、以下のリファレンスを使うことができます:
@ -1385,7 +1385,7 @@ char **weechat_string_split (const char *string, const char *separators,
戻り値: 戻り値:
* 文字列の配列、分割に失敗した場合は NULL (使用後には必ず * 文字列の配列、分割に失敗した場合は NULL (使用後には必ず
<<_weechat_string_free_split,weechat_string_free_split>> を呼び出して領域を開放してください) <<_string_free_split,weechat_string_free_split>> を呼び出して領域を開放してください)
C 言語での使用例: C 言語での使用例:
@ -1439,7 +1439,7 @@ char **weechat_string_split_shell (const char *string, int *num_items);
戻り値: 戻り値:
* 文字列の配列、分割に失敗した場合は NULL (使用後には必ず * 文字列の配列、分割に失敗した場合は NULL (使用後には必ず
<<_weechat_string_free_split,weechat_string_free_split>> を呼び出して領域を開放してください) <<_string_free_split,weechat_string_free_split>> を呼び出して領域を開放してください)
C 言語での使用例: C 言語での使用例:
@ -1473,7 +1473,7 @@ void weechat_string_free_split (char **split_string);
引数: 引数:
* 'split_string': 関数 <<_weechat_string_split,weechat_string_split>> * 'split_string': 関数 <<_string_split,weechat_string_split>>
が返した分割文字列の配列 が返した分割文字列の配列
C 言語での使用例: C 言語での使用例:
@ -1504,7 +1504,7 @@ char *weechat_string_build_with_split_string (char **split_string,
引数: 引数:
* 'split_string': 関数 <<_weechat_string_split,weechat_string_split>> * 'split_string': 関数 <<_string_split,weechat_string_split>>
が返した分割文字列の配列 が返した分割文字列の配列
* 'separator': 文字列を分割する区切り文字 * 'separator': 文字列を分割する区切り文字
@ -1548,7 +1548,7 @@ char **weechat_string_split_command (const char *command, char separator);
戻り値: 戻り値:
* 文字列の配列、分割に失敗した場合は NULL (使用後には必ず * 文字列の配列、分割に失敗した場合は NULL (使用後には必ず
<<_weechat_free_split_command,weechat_free_split_command>> を呼び出して領域を開放してください) <<_free_split_command,weechat_free_split_command>> を呼び出して領域を開放してください)
C 言語での使用例: C 言語での使用例:
@ -1577,7 +1577,7 @@ void weechat_string_free_split_command (char **split_command);
引数: 引数:
* 'split_command': 関数 <<_weechat_string_split_command,weechat_string_split_command>> * 'split_command': 関数 <<_string_split_command,weechat_string_split_command>>
が返す分割コマンドの配列 が返す分割コマンドの配列
C 言語での使用例: C 言語での使用例:
@ -1870,7 +1870,7 @@ char *weechat_string_eval_expression (const char *expr,
* 'pointers': ポインタを含むハッシュテーブル (キーは文字列、値はポインタ); * 'pointers': ポインタを含むハッシュテーブル (キーは文字列、値はポインタ);
(現在のウィンドウやバッファへのポインタを持つ) ハッシュテーブルが "window" と (現在のウィンドウやバッファへのポインタを持つ) ハッシュテーブルが "window" と
"buffer" ポインタを持たない場合はこれらは自動的に追加される (NULL でも可): "buffer" ポインタを持たない場合はこれらは自動的に追加される (NULL でも可):
** 'regex': WeeChat 関数 <<_weechat_string_regcomp,weechat_string_regcomp>> ** 'regex': WeeChat 関数 <<_string_regcomp,weechat_string_regcomp>>
または regcomp (`man regcomp` を参照) でコンパイル済みの正規表現へのポインタ または regcomp (`man regcomp` を参照) でコンパイル済みの正規表現へのポインタ
('regex_t' 構造体); このオプションは (以下の) ハッシュテーブル構造体 'options' ('regex_t' 構造体); このオプションは (以下の) ハッシュテーブル構造体 'options'
メンバの 'regex' とよく似ていますが、より高速に動作します メンバの 'regex' とよく似ていますが、より高速に動作します
@ -1931,7 +1931,7 @@ char *weechat_string_eval_expression (const char *expr,
| `${info:name}` + | `${info:name}` +
`${indo:name,arguments}` | `${indo:name,arguments}` |
WeeChat またはプラグインのインフォ、<<_weechat_info_get,weechat_info_get>> WeeChat またはプラグインのインフォ、<<_info_get,weechat_info_get>>
を参照 | を参照 |
`${info:version}` + `${info:version}` +
`${info:irc_nick_color_name,foo}` | `${info:irc_nick_color_name,foo}` |
@ -4133,10 +4133,10 @@ struct t_config_file *weechat_config_new (const char *name,
[NOTE] [NOTE]
この関数はディスク上にファイルを作りません。ファイルを作るには この関数はディスク上にファイルを作りません。ファイルを作るには
<<_weechat_config_write,weechat_config_write>> <<_config_write,weechat_config_write>>
関数を使ってください。この関数を呼び出す必要があるのは 関数を使ってください。この関数を呼び出す必要があるのは
(<<_weechat_config_new_section,weechat_config_new_section>> を使って) セクションもしくは (<<_config_new_section,weechat_config_new_section>> を使って) セクションもしくは
(<<_weechat_config_new_option,weechat_config_new_option>> を使って) オプションを追加した後だけです。 (<<_config_new_option,weechat_config_new_option>> を使って) オプションを追加した後だけです。
C 言語での使用例: C 言語での使用例:
@ -4997,7 +4997,7 @@ int weechat_config_option_set_null (struct t_config_option *option,
[NOTE] [NOTE]
オプションに null を設定することが許可されている場合にのみ null を設定できます オプションに null を設定することが許可されている場合にのみ null を設定できます
(<<_weechat_config_new_option,weechat_config_new_option>> を参照)。 (<<_config_new_option,weechat_config_new_option>> を参照)。
戻り値: 戻り値:
@ -6312,7 +6312,7 @@ _WeeChat バージョン 0.3.6 以上で利用可。_
[NOTE] [NOTE]
コマンド `/key bind` コマンド `/key bind`
とは異なり、この関数がすでに存在しているキー割り当てを変更することはありません。新しいキー割り当てを作成するだけです。キー割り当てを削除するには とは異なり、この関数がすでに存在しているキー割り当てを変更することはありません。新しいキー割り当てを作成するだけです。キー割り当てを削除するには
<<_weechat_key_unbind,weechat_key_unbind>> を使ってください。 <<_key_unbind,weechat_key_unbind>> を使ってください。
プロトタイプ: プロトタイプ:
@ -6385,7 +6385,7 @@ int weechat_key_unbind (const char *context, const char *key);
引数: 引数:
* 'context': キーのコンテキスト (<<_weechat_key_bind,weechat_key_bind>> を参照) * 'context': キーのコンテキスト (<<_key_bind,weechat_key_bind>> を参照)
* 'key': 削除するキーまたは特殊値 "area:XXX" で1 番目または 2 * 'key': 削除するキーまたは特殊値 "area:XXX" で1 番目または 2
番目の領域から 'XXX' をもつすべてのキーを削除する 番目の領域から 'XXX' をもつすべてのキーを削除する
@ -7201,7 +7201,7 @@ hook = weechat.hook_fd(sock, 1, 0, 0, "my_fd_cb", "")
が自動的にコマンドと引数を分割します (シェルがやっているように)。 + が自動的にコマンドと引数を分割します (シェルがやっているように)。 +
(コマンドのクォートに従った) (コマンドのクォートに従った)
分割に失敗する場合、またはシェルを使いたい場合は、ハッシュテーブル 分割に失敗する場合、またはシェルを使いたい場合は、ハッシュテーブル
'options' に引数を入れて <<_weechat_hook_process_hashtable,weechat_hook_process_hashtable>> 'options' に引数を入れて <<_hook_process_hashtable,weechat_hook_process_hashtable>>
関数を使ってください _(WeeChat バージョン 0.4.0 以上で利用可)_ 。 関数を使ってください _(WeeChat バージョン 0.4.0 以上で利用可)_ 。
プロトタイプ: プロトタイプ:
@ -7253,7 +7253,7 @@ struct t_hook *weechat_hook_process (const char *command,
(プロセスが実行中であればプロセスを kill します)。 (プロセスが実行中であればプロセスを kill します)。
コマンドを "url:http://www.example.com" のフォーマットに従う URL にすることで、URL コマンドを "url:http://www.example.com" のフォーマットに従う URL にすることで、URL
の内容がダウンロードされます _(WeeChat バージョン 0.3.7 以上で利用可)_ 。<<_weechat_hook_process_hashtable,weechat_hook_process_hashtable>> の内容がダウンロードされます _(WeeChat バージョン 0.3.7 以上で利用可)_ 。<<_hook_process_hashtable,weechat_hook_process_hashtable>>
関数を使えば URL に対してオプションを与えることもできます。 関数を使えば URL に対してオプションを与えることもできます。
[TIP] [TIP]
@ -7353,7 +7353,7 @@ struct t_hook *weechat_hook_process_hashtable (const char *command,
---- ----
引数は以下の追加引数を除いて 引数は以下の追加引数を除いて
<<_weechat_hook_process,weechat_hook_process>> 関数と同じです: <<_hook_process,weechat_hook_process>> 関数と同じです:
* 'options': 実行するコマンドのオプション; * 'options': 実行するコマンドのオプション;
ハッシュテーブルは関数の中で複製されるため、この関数を呼び出した後にハッシュテーブルを安全に開放できます。 ハッシュテーブルは関数の中で複製されるため、この関数を呼び出した後にハッシュテーブルを安全に開放できます。
@ -7376,7 +7376,7 @@ struct t_hook *weechat_hook_process_hashtable (const char *command,
_(WeeChat バージョン 0.4.3 以上で利用可)_ | _(WeeChat バージョン 0.4.3 以上で利用可)_ |
(非使用) | (非使用) |
データを書き込むためのパイプを子プロセスの標準入力 (stdin) データを書き込むためのパイプを子プロセスの標準入力 (stdin)
に作成します (関数 <<_weechat_hook_set,weechat_hook_set>> を参照) に作成します (関数 <<_hook_set,weechat_hook_set>> を参照)
| buffer_flush + | buffer_flush +
_(WeeChat バージョン 1.0 以上で利用可)_ | _(WeeChat バージョン 1.0 以上で利用可)_ |
@ -8523,7 +8523,7 @@ int weechat_hook_signal_send (const char *signal, const char *type_data,
* 'signal': 送信するシグナル * 'signal': 送信するシグナル
* 'type_data': シグナルと一緒に送信するデータの型 * 'type_data': シグナルと一緒に送信するデータの型
(<<_weechat_hook_signal,weechat_hook_signal>> を参照) (<<_hook_signal,weechat_hook_signal>> を参照)
* 'signal_data': シグナルと一緒に送信するデータ * 'signal_data': シグナルと一緒に送信するデータ
戻り値 _(WeeChat バージョン 1.0 以上で利用可。)_: 戻り値 _(WeeChat バージョン 1.0 以上で利用可。)_:
@ -9153,7 +9153,7 @@ struct t_hook *weechat_hook_completion (const char *completion_item,
** 'struct t_gui_buffer *buffer': 補完が行われたバッファ ** 'struct t_gui_buffer *buffer': 補完が行われたバッファ
** 'struct t_gui_completion *completion': ** 'struct t_gui_completion *completion':
補完に際して単語を追加するために使われる構造体 補完に際して単語を追加するために使われる構造体
(<<_weechat_hook_completion_list_add,weechat_hook_completion_list_add>> を参照) (<<_hook_completion_list_add,weechat_hook_completion_list_add>> を参照)
** 戻り値: ** 戻り値:
*** 'WEECHAT_RC_OK' *** 'WEECHAT_RC_OK'
*** 'WEECHAT_RC_ERROR' *** 'WEECHAT_RC_ERROR'
@ -9166,10 +9166,10 @@ struct t_hook *weechat_hook_completion (const char *completion_item,
[IMPORTANT] [IMPORTANT]
コールバックは コールバックは
<<_weechat_hook_completion_list_add,weechat_hook_completion_list_add>> <<_hook_completion_list_add,weechat_hook_completion_list_add>>
関数を呼び出すだけで、コマンドラインをコールバックで絶対に*変更しない*でください。 + 関数を呼び出すだけで、コマンドラインをコールバックで絶対に*変更しない*でください。 +
key[Tab] が押された時にコマンドラインを更新するためには、関数 key[Tab] が押された時にコマンドラインを更新するためには、関数
<<_weechat_hook_command_run,weechat_hook_command_run>> を使ってコマンド <<_hook_command_run,weechat_hook_command_run>> を使ってコマンド
"/input complete_next" をフックしてください (コールバックがコマンドラインを更新する場合は必ず "/input complete_next" をフックしてください (コールバックがコマンドラインを更新する場合は必ず
'WEECHAT_RC_OK_EAT' を返してください。そうすれば WeeChat は補完を行いません)。 'WEECHAT_RC_OK_EAT' を返してください。そうすれば WeeChat は補完を行いません)。
@ -9296,7 +9296,7 @@ void weechat_hook_completion_list_add (struct t_gui_completion *completion,
** 'WEECHAT_LIST_POS_BEGINNING': リストの最初 ** 'WEECHAT_LIST_POS_BEGINNING': リストの最初
** 'WEECHAT_LIST_POS_END': リストの最後 ** 'WEECHAT_LIST_POS_END': リストの最後
C 言語での使用例: <<_weechat_hook_completion,weechat_hook_completion>> を参照。 C 言語での使用例: <<_hook_completion,weechat_hook_completion>> を参照。
スクリプト (Python) での使用例: スクリプト (Python) での使用例:
@ -10731,7 +10731,7 @@ void weechat_buffer_set (struct t_gui_buffer *buffer, const char *property,
ユーザからのコマンド `/buffer clear` でバッファのクリアを禁止する場合は "0"、 ユーザからのコマンド `/buffer clear` でバッファのクリアを禁止する場合は "0"、
バッファのクリアを許可する場合は "1" (新規バッファに対するデフォルト) バッファのクリアを許可する場合は "1" (新規バッファに対するデフォルト)
(注意: この値が "0" に設定されていたとしても、関数 (注意: この値が "0" に設定されていたとしても、関数
<<_weechat_buffer_clear,weechat_buffer_clear>> を使えばバッファをクリアすることが可能です) <<_buffer_clear,weechat_buffer_clear>> を使えばバッファをクリアすることが可能です)
| filter + | filter +
_(WeeChat バージョン 1.0 以上で利用可)_ | "0" または "1" | _(WeeChat バージョン 1.0 以上で利用可)_ | "0" または "1" |
@ -11805,7 +11805,7 @@ void weechat_nicklist_group_set (struct t_gui_buffer *buffer,
| 名前 | 値 | 説明 | 名前 | 値 | 説明
| color | WeeChat 色オプション名 | | color | WeeChat 色オプション名 |
関数 <<_weechat_nicklist_add_group,weechat_nicklist_add_group>> 関数 <<_nicklist_add_group,weechat_nicklist_add_group>>
の引数 "color" を参照 の引数 "color" を参照
| visible | "0"、"1" | | visible | "0"、"1" |
@ -12010,14 +12010,14 @@ void weechat_nicklist_nick_set (struct t_gui_buffer *buffer,
| 名前 | 値 | 説明 | 名前 | 値 | 説明
| color | WeeChat 色オプション名 | | color | WeeChat 色オプション名 |
関数 <<_weechat_nicklist_add_nick,weechat_nicklist_add_nick>> 関数 <<_nicklist_add_nick,weechat_nicklist_add_nick>>
の引数 "color" を参照 の引数 "color" を参照
| prefix | 任意の文字列 | | prefix | 任意の文字列 |
指定したニックネームのプレフィックス 指定したニックネームのプレフィックス
| prefix_color | WeeChat color option name | | prefix_color | WeeChat color option name |
関数 <<_weechat_nicklist_add_nick,weechat_nicklist_add_nick>> 関数 <<_nicklist_add_nick,weechat_nicklist_add_nick>>
の引数 "prefix_color" を参照 の引数 "prefix_color" を参照
| visible | "0", "1" | | visible | "0", "1" |
@ -12411,7 +12411,7 @@ int weechat_bar_set (struct t_gui_bar *bar, const char *property,
* 'bar': バーへのポインタ * 'bar': バーへのポインタ
* 'property': name、hidden、priority、conditions、position、filling_top_bottom、filling_left_right、size、size_max、color_fg、color_delim、color_bg、separator、items * 'property': name、hidden、priority、conditions、position、filling_top_bottom、filling_left_right、size、size_max、color_fg、color_delim、color_bg、separator、items
(<<_weechat_bar_new,weechat_bar_new>> (<<_bar_new,weechat_bar_new>>
を参照) を参照)
* 'value': プロパティの新しい値 * 'value': プロパティの新しい値
@ -13591,7 +13591,7 @@ hdata に対する関数 (WeeChat またはプラグインデータへの直ア
hdata を使うことで読み取り専用でデータにアクセスできます。hdata hdata を使うことで読み取り専用でデータにアクセスできます。hdata
変数が示すメモリ領域に何かを書き込むことは*厳禁* です。 + 変数が示すメモリ領域に何かを書き込むことは*厳禁* です。 +
データを更新する場合は必ず関数 データを更新する場合は必ず関数
<<_weechat_hdata_update,weechat_hdata_update>> を使ってください。 <<_hdata_update,weechat_hdata_update>> を使ってください。
==== hdata_new ==== hdata_new
@ -13639,7 +13639,7 @@ struct t_hdata *weechat_hdata_new (const char *hdata_name, const char *var_prev,
** 'void *data': ポインタ ** 'void *data': ポインタ
** 'struct t_hdata *hdata': hdata へのポインタ ** 'struct t_hdata *hdata': hdata へのポインタ
** 'struct t_hashtable *hashtable': 更新する変数を含むハッシュテーブル ** 'struct t_hashtable *hashtable': 更新する変数を含むハッシュテーブル
(<<_weechat_hdata_update,weechat_hdata_update>> を参照) (<<_hdata_update,weechat_hdata_update>> を参照)
** return value: 更新された変数の数 ** return value: 更新された変数の数
* 'callback_update_data': WeeChat が update コールバックを呼び出す際にコールバックに渡すポインタ * 'callback_update_data': WeeChat が update コールバックを呼び出す際にコールバックに渡すポインタ
_(WeeChat バージョン 0.3.9 以上で利用可)_ _(WeeChat バージョン 0.3.9 以上で利用可)_
@ -14251,7 +14251,7 @@ int weechat_hdata_check_pointer (struct t_hdata *hdata, void *list, void *pointe
* 'hdata': hdata へのポインタ * 'hdata': hdata へのポインタ
* 'list': リストポインタ; NULL の場合 _(WeeChat バージョン 1.0 以上)_、ポインタは * 'list': リストポインタ; NULL の場合 _(WeeChat バージョン 1.0 以上)_、ポインタは
hdata に含まれる "check pointers" フラグを持つリストでチェックされます hdata に含まれる "check pointers" フラグを持つリストでチェックされます
(<<_weechat_hdata_new_list,weechat_hdata_new_list>> (<<_hdata_new_list,weechat_hdata_new_list>>
を参照)、このフラグを持つリストがない場合、ポインタは妥当とされます。 を参照)、このフラグを持つリストがない場合、ポインタは妥当とされます。
* 'pointer': 確認するポインタ * 'pointer': 確認するポインタ
@ -14761,8 +14761,8 @@ hdata の変数に新しい値を設定。
[NOTE] [NOTE]
変数の更新を許可している場合に、この関数呼び出して良いのは update 変数の更新を許可している場合に、この関数呼び出して良いのは update
コールバックの中だけです (<<_weechat_hdata_new,weechat_hdata_new>> コールバックの中だけです (<<_hdata_new,weechat_hdata_new>>
と <<_weechat_hdata_update,weechat_hdata_update>> を参照) と <<_hdata_update,weechat_hdata_update>> を参照)
プロトタイプ: プロトタイプ: