diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-03-28 13:06:04 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-03-28 13:06:04 +0200 |
commit | 5210ff1ae9f0b8a56541aba94136d2806548e819 (patch) | |
tree | 0b293cb239ee374004322f4ad1232e9c0c2e0904 /doc/it/weechat_plugin_api.it.asciidoc | |
parent | 75243a46a1999b0aae297826a04ef31e96027aa4 (diff) | |
download | weechat-5210ff1ae9f0b8a56541aba94136d2806548e819.zip |
doc: fix typos in config functions (plugin API reference)
Diffstat (limited to 'doc/it/weechat_plugin_api.it.asciidoc')
-rw-r--r-- | doc/it/weechat_plugin_api.it.asciidoc | 18 |
1 files changed, 11 insertions, 7 deletions
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; */ } |