diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-05-30 20:23:01 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-05-30 20:28:01 +0200 |
commit | f6a8c28d2dcf4d4ed6f87e7e94574b331455b40a (patch) | |
tree | d3c76b7ab7b439c54bf08050cfa63dca66ea994a /doc/ja/weechat_plugin_api.ja.adoc | |
parent | f131b9f7defeee9e48eb8ed077d491bcdfcf0e03 (diff) | |
download | weechat-f6a8c28d2dcf4d4ed6f87e7e94574b331455b40a.zip |
api: add function config_option_get_string in plugin API
Diffstat (limited to 'doc/ja/weechat_plugin_api.ja.adoc')
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index 74d438720..3109f8e89 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -6059,6 +6059,50 @@ weechat.config_option_rename(option, new_name) weechat.config_option_rename(option, "new_name") ---- +==== config_option_get_string + +_WeeChat ≥ 1.9._ + +// TRANSLATION MISSING +Return string value of an option property. + +Prototype: + +[source,C] +---- +const char *weechat_config_option_get_string (struct t_config_option *option, + const char *property); +---- + +引数: + +// TRANSLATION MISSING +* _option_: オプションへのポインタ +* _property_: プロパティ名: +** _name_: option name +** _parent_name_: name of parent option +** _type_: option type, one of: +*** _boolean_ +*** _integer_ +*** _string_ +*** _color_ +** _description_: option description + +戻り値: + +// TRANSLATION MISSING +* string value of property + +C 言語での使用例: + +[source,C] +---- +const char *type = weechat_config_option_get_string (option, "type"); +---- + +[NOTE] +スクリプト API ではこの関数を利用できません。 + ==== config_option_get_pointer あるオプションのプロパティへのポインタを返す。 |