summaryrefslogtreecommitdiff
path: root/doc/en
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/en
parent75243a46a1999b0aae297826a04ef31e96027aa4 (diff)
downloadweechat-5210ff1ae9f0b8a56541aba94136d2806548e819.zip
doc: fix typos in config functions (plugin API reference)
Diffstat (limited to 'doc/en')
-rw-r--r--doc/en/weechat_plugin_api.en.asciidoc17
1 files changed, 11 insertions, 6 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; */
}