diff options
Diffstat (limited to 'doc/it')
-rw-r--r-- | doc/it/weechat_plugin_api.it.asciidoc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc index 1e9f5a3cd..1d05a074e 100644 --- a/doc/it/weechat_plugin_api.it.asciidoc +++ b/doc/it/weechat_plugin_api.it.asciidoc @@ -3897,7 +3897,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] |