diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-05-24 18:03:14 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-05-24 18:03:14 +0200 |
commit | 7aaf3be15bdb3ff2bd9815cc35bd1699c20ce7a6 (patch) | |
tree | db50043debf82a51dbab4c73f27342dec36d2fee /doc/ja/weechat_plugin_api.ja.txt | |
parent | 3092c09bc96438afb005c6ce11b07309a945ebc7 (diff) | |
download | weechat-7aaf3be15bdb3ff2bd9815cc35bd1699c20ce7a6.zip |
api: add argument "flags" in function hdata_new_list
Diffstat (limited to 'doc/ja/weechat_plugin_api.ja.txt')
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.txt | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.txt b/doc/ja/weechat_plugin_api.ja.txt index a42236ff7..f9875e64d 100644 --- a/doc/ja/weechat_plugin_api.ja.txt +++ b/doc/ja/weechat_plugin_api.ja.txt @@ -13538,7 +13538,8 @@ WEECHAT_HDATA_VAR(struct t_myplugin_list, next, POINTER, 0, NULL, "myplugin_list ==== weechat_hdata_new_list -_WeeChat バージョン 0.3.6 以上で利用可。_ +// TRANSLATION MISSING +_WeeChat ≥ 0.3.6, updated in 1.0._ hdata に新しいリストへのポインタを作成。 @@ -13546,7 +13547,7 @@ hdata に新しいリストへのポインタを作成。 [source,C] ---- -void weechat_hdata_new_list (struct t_hdata *hdata, const char *name, void *pointer); +void weechat_hdata_new_list (struct t_hdata *hdata, const char *name, void *pointer, int flags); ---- 引数: @@ -13554,6 +13555,9 @@ void weechat_hdata_new_list (struct t_hdata *hdata, const char *name, void *poin * 'hdata': hdata へのポインタ * 'name': 変数名 * 'pointer': リストへのポインタ +// TRANSLATION MISSING +* 'flags': combination of following values: _(WeeChat ≥ 1.0)_ +** 'WEECHAT_HDATA_LIST_CHECK_POINTERS': list used to check pointers C 言語での使用例: @@ -13581,16 +13585,16 @@ weechat_hdata_new_var (hdata, "string_split", offsetof (struct t_myplugin_list, weechat_hdata_new_var (hdata, "prev", offsetof (struct t_myplugin_list, prev), WEECHAT_HDATA_POINTER, NULL, "myplugin_list"); weechat_hdata_new_var (hdata, "next", offsetof (struct t_myplugin_list, next), WEECHAT_HDATA_POINTER, NULL, "myplugin_list"); -weechat_hdata_new_list (hdata, "buffers", &buffers); -weechat_hdata_new_list (hdata, "last_buffer", &last_buffer); +weechat_hdata_new_list (hdata, "buffers", &buffers, WEECHAT_HDATA_LIST_CHECK_POINTERS); +weechat_hdata_new_list (hdata, "last_buffer", &last_buffer, 0); ---- コードを短くするためにはマクロ "WEECHAT_HDATA_LIST" を使います。 [source,C] ---- -WEECHAT_HDATA_LIST(buffers); -WEECHAT_HDATA_LIST(last_buffer); +WEECHAT_HDATA_LIST(buffers, WEECHAT_HDATA_LIST_CHECK_POINTERS); +WEECHAT_HDATA_LIST(last_buffer, 0); ---- [NOTE] @@ -14028,7 +14032,8 @@ buffers = weechat.hdata_get_list(hdata, "gui_buffers") ==== weechat_hdata_check_pointer -_WeeChat バージョン 0.3.7 以上で利用可。_ +// TRANSLATION MISSING +_WeeChat ≥ 0.3.7, updated in 1.0._ hdata とリストへのポインタを使ってポインタの妥当性を確認する。 @@ -14042,7 +14047,11 @@ int weechat_hdata_check_pointer (struct t_hdata *hdata, void *list, void *pointe 引数: * 'hdata': hdata へのポインタ -* 'list': リストへのポインタ +// TRANSLATION MISSING +* 'list': list pointer; if NULL _(WeeChat ≥ 1.0)_, the pointer is checked with + the lists in hdata that have flag "check pointers" (see + <<_weechat_hdata_new_list,weechat_hdata_new_list>>), and if no such list + exists, the pointer is considered as valid * 'pointer': 確認するポインタ 戻り値: |