doc: add missing argument "pos_option_name" in function "config_search_with_string" (plugin API reference)

v2.8-utf8proc
Sebastien Helleu 2012-07-23 19:03:08 +02:00
parent 51c1168ff3
commit b869a145ac
3 changed files with 22 additions and 6 deletions

View File

@ -4375,7 +4375,8 @@ Prototype:
void weechat_config_search_with_string (const char *option_name,
struct t_config_file **config_file,
struct t_config_section **section,
struct t_config_option **option);
struct t_config_option **option,
char **pos_option_name);
----------------------------------------
Arguments:
@ -4387,6 +4388,8 @@ Arguments:
found
* 'option': pointer to an option pointer, will be set to option pointer, if
found
* 'pos_option_name': pointer to a string pointer, will be set to pointer to
name of option, if found
C example:
@ -4395,11 +4398,13 @@ C example:
struct t_config_file *ptr_config_file;
struct t_config_section *ptr_section;
struct t_config_option *ptr_option;
char *option_name;
weechat_config_search_with_string ("file.section.option",
&ptr_config_file,
&ptr_section,
&ptr_option);
&ptr_option,
&option_name);
if (ptr_option)
{
/* option found */

View File

@ -4426,7 +4426,8 @@ Prototype :
void weechat_config_search_with_string (const char *option_name,
struct t_config_file **config_file,
struct t_config_section **section,
struct t_config_option **option);
struct t_config_option **option,
char **pos_option_name);
----------------------------------------
Paramètres :
@ -4439,6 +4440,8 @@ Paramètres :
pointeur vers la section de l'option trouvée
* 'option' : pointeur vers un pointeur sur une option, sera alimenté avec le
pointeur vers l'option trouvée
* 'pos_option_name' : pointeur vers un pointeur sur une chaîne, sera alimenté
avec le pointeur vers le nom de l'option trouvée
Exemple en C :
@ -4447,11 +4450,13 @@ Exemple en C :
struct t_config_file *ptr_config_file;
struct t_config_section *ptr_section;
struct t_config_option *ptr_option;
char *option_name;
weechat_config_search_with_string ("fichier.section.option",
&ptr_config_file,
&ptr_section,
&ptr_option);
&ptr_option,
&option_name);
if (ptr_option)
{
/* option trouvée */

View File

@ -4371,7 +4371,8 @@ Prototipo:
void weechat_config_search_with_string (const char *option_name,
struct t_config_file **config_file,
struct t_config_section **section,
struct t_config_option **option);
struct t_config_option **option,
char **pos_option_name);
----------------------------------------
Argomenti:
@ -4383,6 +4384,9 @@ Argomenti:
dell'opzione, se viene trovata
* 'option': puntatore al puntatore dell'opzione, sarà impostato al puntatore di
un'opzione, se viene trovata
// TRANSLATION MISSING
* 'pos_option_name': pointer to a string pointer, will be set to pointer to
name of option, if found
Esempio in C:
@ -4391,11 +4395,13 @@ Esempio in C:
struct t_config_file *ptr_config_file;
struct t_config_section *ptr_section;
struct t_config_option *ptr_option;
char *option_name;
weechat_config_search_with_string ("file.section.option",
&ptr_config_file,
&ptr_section,
&ptr_option);
&ptr_option,
&option_name);
if (ptr_option)
{
/* opzione trovata */