diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-12 07:32:15 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-12 07:32:15 +0200 |
commit | e4fb9a4a4bda945127f3a092cf4fb33e82abb81d (patch) | |
tree | c688fcad4673d5df19533666fb8670e08f9aa72e /doc/ja/weechat_plugin_api.ja.asciidoc | |
parent | 62d891aea9c2ea105a21be7834dbbb96b7680083 (diff) | |
download | weechat-e4fb9a4a4bda945127f3a092cf4fb33e82abb81d.zip |
doc: add example with "callback_free_key" in function hashtable_set_pointer (plugin API reference)
Diffstat (limited to 'doc/ja/weechat_plugin_api.ja.asciidoc')
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.asciidoc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc index 8432411d5..0b14d93d6 100644 --- a/doc/ja/weechat_plugin_api.ja.asciidoc +++ b/doc/ja/weechat_plugin_api.ja.asciidoc @@ -3808,7 +3808,14 @@ my_free_value_cb (struct t_hashtable *hashtable, const void *key, void *value) /* ... */ } +void +my_free_key_cb (struct t_hashtable *hashtable, void *key) +{ + /* ... */ +} + weechat_hashtable_set_pointer (hashtable, "callback_free_value", &my_free_value_cb); +weechat_hashtable_set_pointer (hashtable, "callback_free_key", &my_free_key_cb); ---- [NOTE] |