summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-03-28 13:06:04 +0200
committerSébastien Helleu <flashcode@flashtux.org>2016-03-28 13:06:04 +0200
commit5210ff1ae9f0b8a56541aba94136d2806548e819 (patch)
tree0b293cb239ee374004322f4ad1232e9c0c2e0904 /doc
parent75243a46a1999b0aae297826a04ef31e96027aa4 (diff)
downloadweechat-5210ff1ae9f0b8a56541aba94136d2806548e819.zip
doc: fix typos in config functions (plugin API reference)
Diffstat (limited to 'doc')
-rw-r--r--doc/en/weechat_plugin_api.en.asciidoc17
-rw-r--r--doc/fr/weechat_plugin_api.fr.asciidoc18
-rw-r--r--doc/it/weechat_plugin_api.it.asciidoc18
-rw-r--r--doc/ja/weechat_plugin_api.ja.asciidoc18
4 files changed, 44 insertions, 27 deletions
diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc
index 4da663890..70f636f6f 100644
--- a/doc/en/weechat_plugin_api.en.asciidoc
+++ b/doc/en/weechat_plugin_api.en.asciidoc
@@ -4415,7 +4415,7 @@ Arguments:
** 'void *data': pointer
** 'struct t_config_file *config_file': configuration file pointer
** 'struct t_config_section *section': section pointer
-** 'const char *option_name': name of option
+** 'const char *section_name': name of section
** return value:
*** 'WEECHAT_CONFIG_WRITE_OK'
*** 'WEECHAT_CONFIG_WRITE_ERROR'
@@ -4495,10 +4495,9 @@ my_section_read_cb (const void *pointer, void *data,
{
/* ... */
- return WEECHAT_CONFIG_OPTION_SET_OK_CHANGED;
- /* return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; */
- /* return WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND; */
- /* return WEECHAT_CONFIG_OPTION_SET_ERROR; */
+ return WEECHAT_CONFIG_READ_OK;
+ /* return WEECHAT_CONFIG_READ_MEMORY_ERROR; */
+ /* return WEECHAT_CONFIG_READ_FILE_NOT_FOUND; */
}
int
@@ -4510,6 +4509,7 @@ my_section_write_cb (const void *pointer, void *data,
return WEECHAT_CONFIG_WRITE_OK;
/* return WEECHAT_CONFIG_WRITE_ERROR; */
+ /* return WEECHAT_CONFIG_WRITE_MEMORY_ERROR; */
}
int
@@ -4521,6 +4521,7 @@ my_section_write_default_cb (const void *pointer, void *data,
return WEECHAT_CONFIG_WRITE_OK;
/* return WEECHAT_CONFIG_WRITE_ERROR; */
+ /* return WEECHAT_CONFIG_WRITE_MEMORY_ERROR; */
}
int
@@ -4532,8 +4533,10 @@ my_section_create_option_cb (const void *pointer, void *data,
{
/* ... */
- return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE;
+ return WEECHAT_CONFIG_OPTION_SET_OK_CHANGED;
+ /* return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; */
/* return WEECHAT_CONFIG_OPTION_SET_ERROR; */
+ /* return WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND; */
}
int
@@ -4545,6 +4548,8 @@ my_section_delete_option_cb (const void *pointer, void *data,
/* ... */
return WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED;
+ /* return WEECHAT_CONFIG_OPTION_UNSET_OK_NO_RESET; */
+ /* return WEECHAT_CONFIG_OPTION_UNSET_OK_RESET; */
/* return WEECHAT_CONFIG_OPTION_UNSET_ERROR; */
}
diff --git a/doc/fr/weechat_plugin_api.fr.asciidoc b/doc/fr/weechat_plugin_api.fr.asciidoc
index 56931aa5a..2df073e74 100644
--- a/doc/fr/weechat_plugin_api.fr.asciidoc
+++ b/doc/fr/weechat_plugin_api.fr.asciidoc
@@ -4492,8 +4492,7 @@ Paramètres :
** 'void *data' : pointeur
** 'struct t_config_file *config_file' : pointeur vers le fichier de
configuration
-** 'struct t_config_section *section' : pointeur vers la section
-** 'const char *option_name' : nom de l'option
+** 'const char *section_name' : nom de la section
** valeur de retour :
*** 'WEECHAT_CONFIG_WRITE_OK'
*** 'WEECHAT_CONFIG_WRITE_ERROR'
@@ -4576,10 +4575,9 @@ my_section_read_cb (const void *pointer, void *data,
{
/* ... */
- return WEECHAT_CONFIG_OPTION_SET_OK_CHANGED;
- /* return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; */
- /* return WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND; */
- /* return WEECHAT_CONFIG_OPTION_SET_ERROR; */
+ return WEECHAT_CONFIG_READ_OK;
+ /* return WEECHAT_CONFIG_READ_MEMORY_ERROR; */
+ /* return WEECHAT_CONFIG_READ_FILE_NOT_FOUND; */
}
int
@@ -4591,6 +4589,7 @@ my_section_write_cb (const void *pointer, void *data,
return WEECHAT_CONFIG_WRITE_OK;
/* return WEECHAT_CONFIG_WRITE_ERROR; */
+ /* return WEECHAT_CONFIG_WRITE_MEMORY_ERROR; */
}
int
@@ -4602,6 +4601,7 @@ my_section_write_default_cb (const void *pointer, void *data,
return WEECHAT_CONFIG_WRITE_OK;
/* return WEECHAT_CONFIG_WRITE_ERROR; */
+ /* return WEECHAT_CONFIG_WRITE_MEMORY_ERROR; */
}
int
@@ -4613,8 +4613,10 @@ my_section_create_option_cb (const void *pointer, void *data,
{
/* ... */
- return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE;
+ return WEECHAT_CONFIG_OPTION_SET_OK_CHANGED;
+ /* return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; */
/* return WEECHAT_CONFIG_OPTION_SET_ERROR; */
+ /* return WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND; */
}
int
@@ -4626,6 +4628,8 @@ my_section_delete_option_cb (const void *pointer, void *data,
/* ... */
return WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED;
+ /* return WEECHAT_CONFIG_OPTION_UNSET_OK_NO_RESET; */
+ /* return WEECHAT_CONFIG_OPTION_UNSET_OK_RESET; */
/* return WEECHAT_CONFIG_OPTION_UNSET_ERROR; */
}
diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc
index c390e19c6..f706abff1 100644
--- a/doc/it/weechat_plugin_api.it.asciidoc
+++ b/doc/it/weechat_plugin_api.it.asciidoc
@@ -4544,8 +4544,7 @@ Argomenti:
** 'const void *pointer': puntatore
** 'void *data': puntatore
** 'struct t_config_file *config_file': puntatore al file di configurazione
-** 'struct t_config_section *section': puntatore alla sezione
-** 'const char *option_name': nome dell'opzione
+** 'const char *section_name': nome della sezione
** valore restituito:
*** 'WEECHAT_CONFIG_WRITE_OK'
*** 'WEECHAT_CONFIG_WRITE_ERROR'
@@ -4629,10 +4628,9 @@ my_section_read_cb (const void *pointer, void *data,
{
/* ... */
- return WEECHAT_CONFIG_OPTION_SET_OK_CHANGED;
- /* return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; */
- /* return WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND; */
- /* return WEECHAT_CONFIG_OPTION_SET_ERROR; */
+ return WEECHAT_CONFIG_READ_OK;
+ /* return WEECHAT_CONFIG_READ_MEMORY_ERROR; */
+ /* return WEECHAT_CONFIG_READ_FILE_NOT_FOUND; */
}
int
@@ -4644,6 +4642,7 @@ my_section_write_cb (const void *pointer, void *data,
return WEECHAT_CONFIG_WRITE_OK;
/* return WEECHAT_CONFIG_WRITE_ERROR; */
+ /* return WEECHAT_CONFIG_WRITE_MEMORY_ERROR; */
}
int
@@ -4655,6 +4654,7 @@ my_section_write_default_cb (const void *pointer, void *data,
return WEECHAT_CONFIG_WRITE_OK;
/* return WEECHAT_CONFIG_WRITE_ERROR; */
+ /* return WEECHAT_CONFIG_WRITE_MEMORY_ERROR; */
}
int
@@ -4666,8 +4666,10 @@ my_section_create_option_cb (const void *pointer, void *data,
{
/* ... */
- return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE;
+ return WEECHAT_CONFIG_OPTION_SET_OK_CHANGED;
+ /* return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; */
/* return WEECHAT_CONFIG_OPTION_SET_ERROR; */
+ /* return WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND; */
}
int
@@ -4679,6 +4681,8 @@ my_section_delete_option_cb (const void *pointer, void *data,
/* ... */
return WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED;
+ /* return WEECHAT_CONFIG_OPTION_UNSET_OK_NO_RESET; */
+ /* return WEECHAT_CONFIG_OPTION_UNSET_OK_RESET; */
/* return WEECHAT_CONFIG_OPTION_UNSET_ERROR; */
}
diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc
index cbaf337fb..9e5907066 100644
--- a/doc/ja/weechat_plugin_api.ja.asciidoc
+++ b/doc/ja/weechat_plugin_api.ja.asciidoc
@@ -4416,8 +4416,7 @@ struct t_config_section *weechat_config_new_section (
** 'const void *pointer': ポインタ
** 'void *data': ポインタ
** 'struct t_config_file *config_file': 設定ファイルへのポインタ
-** 'struct t_config_section *section': セクションへのポインタ
-** 'const char *option_name': オプションの名前
+** 'const char *section_name': セクションの名前
** 戻り値:
*** 'WEECHAT_CONFIG_WRITE_OK'
*** 'WEECHAT_CONFIG_WRITE_ERROR'
@@ -4498,10 +4497,9 @@ my_section_read_cb (void *data, struct t_config_file *config_file,
{
/* ... */
- return WEECHAT_CONFIG_OPTION_SET_OK_CHANGED;
- /* return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; */
- /* return WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND; */
- /* return WEECHAT_CONFIG_OPTION_SET_ERROR; */
+ return WEECHAT_CONFIG_READ_OK;
+ /* return WEECHAT_CONFIG_READ_MEMORY_ERROR; */
+ /* return WEECHAT_CONFIG_READ_FILE_NOT_FOUND; */
}
int
@@ -4512,6 +4510,7 @@ my_section_write_cb (void *data, struct t_config_file *config_file,
return WEECHAT_CONFIG_WRITE_OK;
/* return WEECHAT_CONFIG_WRITE_ERROR; */
+ /* return WEECHAT_CONFIG_WRITE_MEMORY_ERROR; */
}
int
@@ -4522,6 +4521,7 @@ my_section_write_default_cb (void *data, struct t_config_file *config_file,
return WEECHAT_CONFIG_WRITE_OK;
/* return WEECHAT_CONFIG_WRITE_ERROR; */
+ /* return WEECHAT_CONFIG_WRITE_MEMORY_ERROR; */
}
int
@@ -4531,8 +4531,10 @@ my_section_create_option_cb (void *data, struct t_config_file *config_file,
{
/* ... */
- return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE;
+ return WEECHAT_CONFIG_OPTION_SET_OK_CHANGED;
+ /* return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; */
/* return WEECHAT_CONFIG_OPTION_SET_ERROR; */
+ /* return WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND; */
}
int
@@ -4543,6 +4545,8 @@ my_section_delete_option_cb (void *data, struct t_config_file *config_file,
/* ... */
return WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED;
+ /* return WEECHAT_CONFIG_OPTION_UNSET_OK_NO_RESET; */
+ /* return WEECHAT_CONFIG_OPTION_UNSET_OK_RESET; */
/* return WEECHAT_CONFIG_OPTION_UNSET_ERROR; */
}