diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-26 19:01:25 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-26 19:01:25 +0100 |
commit | b9e65ec63d3020251d34ed79a4fb8868d8b7e2be (patch) | |
tree | 99d406d0fd6ce3befc9fb93dee4679f2fdb19de6 /doc/en/weechat_plugin_api.en.txt | |
parent | 24135801b49cda825146ea9e831f7927ff945dbe (diff) | |
download | weechat-b9e65ec63d3020251d34ed79a4fb8868d8b7e2be.zip |
Fix bug with writing of configuration files when disk is full (bug #29331)
Diffstat (limited to 'doc/en/weechat_plugin_api.en.txt')
-rw-r--r-- | doc/en/weechat_plugin_api.en.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index 540d590b8..87afffec9 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -2700,7 +2700,8 @@ my_section_write_cb (void *data, struct t_config_file *config_file, { /* ... */ - return WEECHAT_RC_OK; + return WEECHAT_CONFIG_WRITE_OK; + /* return WEECHAT_CONFIG_WRITE_ERROR; */ } int @@ -2709,7 +2710,8 @@ my_section_write_default_cb (void *data, struct t_config_file *config_file, { /* ... */ - return WEECHAT_RC_OK; + return WEECHAT_CONFIG_WRITE_OK; + /* return WEECHAT_CONFIG_WRITE_ERROR; */ } int @@ -2719,7 +2721,8 @@ my_section_create_option_cb (void *data, struct t_config_file *config_file, { /* ... */ - return WEECHAT_RC_OK; + return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; + /* return WEECHAT_CONFIG_OPTION_SET_ERROR; */ } int @@ -2729,7 +2732,8 @@ my_section_delete_option_cb (void *data, struct t_config_file *config_file, { /* ... */ - return WEECHAT_RC_OK; + return WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED; + /* return WEECHAT_CONFIG_OPTION_UNSET_ERROR; */ } /* standard section, user can not add/delete options */ @@ -5369,7 +5373,7 @@ struct t_hook *weechat_hook_connect (const char *proxy, int (*callback)(void *data, int status, int gnutls_rc, - const char *errpr, + const char *error, const char *ip_address), void *callback_data); ---------------------------------------- @@ -5386,6 +5390,7 @@ Arguments: * 'gnutls_cb': GnuTLS callback (optional) * 'gnutls_dhkey_size': size of the key used during the Diffie-Hellman Key Exchange (GnuTLS) +* 'local_hostname': local hostname to use for connection (optional) * 'callback': function called when connection is ok or failed, arguments: ** 'void *data': pointer ** 'int status': connection status: @@ -6014,7 +6019,7 @@ Script (Python): [source,python] ---------------------------------------- # prototype -hook = weechat.hook_completion(completion_item, callback, callback_data) +hook = weechat.hook_completion(completion_item, description, callback, callback_data) # example def my_completion_cb(data, completion_item, buffer, completion): |