diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-04-03 11:03:15 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-04-03 11:03:15 +0200 |
commit | 18bf12f452ab250a5ed3a5ba571da57b9c564233 (patch) | |
tree | 27d75d381b325704ab190c563ffdc09139792134 /doc/en | |
parent | ece614504f1b6628d8bda0eb48362686d8bad3a2 (diff) | |
download | weechat-18bf12f452ab250a5ed3a5ba571da57b9c564233.zip |
doc: describe return code according to option type in config functions (plugin API reference)
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/weechat_plugin_api.en.asciidoc | 58 |
1 files changed, 42 insertions, 16 deletions
diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc index 677b904f3..7212082ec 100644 --- a/doc/en/weechat_plugin_api.en.asciidoc +++ b/doc/en/weechat_plugin_api.en.asciidoc @@ -5522,9 +5522,12 @@ Arguments: * 'option': option pointer -Return value: +Return value, depending on the option type: -* boolean value of option (0 or 1) +* 'boolean': boolean value of option (0 or 1) +* 'integer': 0 +* 'string': 0 +* 'color': 0 C example: @@ -5569,9 +5572,12 @@ Arguments: * 'option': option pointer -Return value: +Return value, depending on the option type: -* default boolean value of option (0 or 1) +* 'boolean': default boolean value of option (0 or 1) +* 'integer': 0 +* 'string': 0 +* 'color': 0 C example: @@ -5616,9 +5622,12 @@ Arguments: * 'option': option pointer -Return value: +Return value, depending on the option type: -* integer value of option +* 'boolean': boolean value of option (0 or 1) +* 'integer': integer value of option +* 'string': 0 +* 'color': color index C example: @@ -5655,9 +5664,12 @@ Arguments: * 'option': option pointer -Return value: +Return value, depending on the option type: -* default integer value of option +* 'boolean': default boolean value of option (0 or 1) +* 'integer': default integer value of option +* 'string': 0 +* 'color': default color index C example: @@ -5694,9 +5706,13 @@ Arguments: * 'option': option pointer -Return value: +Return value, depending on the option type: -* string value of option +* 'boolean': "on" if value is true, otherwise "off" +* 'integer': string value if the option is an integer with string values, + otherwise NULL +* 'string': string value of option +* 'color': name of color C example: @@ -5733,9 +5749,13 @@ Arguments: * 'option': option pointer -Return value: +Return value, depending on the option type: -* default string value of option +* 'boolean': "on" if default value is true, otherwise "off" +* 'integer': default string value if the option is an integer with string + values, otherwise NULL +* 'string': default string value of option +* 'color': name of default color C example: @@ -5772,9 +5792,12 @@ Arguments: * 'option': option pointer -Return value: +Return value, depending on the option type: -* color value of option (string with name of color) +* 'boolean': NULL +* 'integer': NULL +* 'string': NULL +* 'color': name of color C example: @@ -5811,9 +5834,12 @@ Arguments: * 'option': option pointer -Return value: +Return value, depending on the option type: -* default color value of option (string with name of color) +* 'boolean': NULL +* 'integer': NULL +* 'string': NULL +* 'color': name of default color C example: |