summaryrefslogtreecommitdiff
path: root/doc/it/weechat_plugin_api.it.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/it/weechat_plugin_api.it.asciidoc')
-rw-r--r--doc/it/weechat_plugin_api.it.asciidoc18
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; */
}