diff options
-rw-r--r-- | doc/en/weechat_plugin_api.en.txt | 9 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.txt | 9 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.txt | 10 |
3 files changed, 22 insertions, 6 deletions
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index e7c711749..ccc517659 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -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 */ diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt index 45fe7e67f..fc67e1021 100644 --- a/doc/fr/weechat_plugin_api.fr.txt +++ b/doc/fr/weechat_plugin_api.fr.txt @@ -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 */ diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt index 7e49e13e9..0a7c56a5b 100644 --- a/doc/it/weechat_plugin_api.it.txt +++ b/doc/it/weechat_plugin_api.it.txt @@ -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 */ |