diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-01-02 16:32:54 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-01-02 16:32:54 +0100 |
commit | 44e16c05110a19fd8c622d3aeb46179d05d8ec69 (patch) | |
tree | 6804c2803ad8d51a72150270040427484ba8993b /doc/en | |
parent | fcfe8544410de238f6329439b2dadb6cc6a8192a (diff) | |
download | weechat-44e16c05110a19fd8c622d3aeb46179d05d8ec69.zip |
Add function "hashtable_set_pointer" in plugin API
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/weechat_plugin_api.en.txt | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index bc4e754f0..aa9efc917 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -3278,6 +3278,43 @@ weechat_printf (NULL, "list of keys: %s", [NOTE] This function is not available in scripting API. +weechat_hashtable_set_pointer +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +_New in version 0.3.4._ + +Set pointer value of a hashtable property. + +Prototype: + +[source,C] +---------------------------------------- +void weechat_hashtable_set_pointer (struct t_hashtable *hashtable, + const char *property, void *pointer); +---------------------------------------- + +Arguments: + +* 'hashtable': hashtable pointer +* 'property' and 'value': property name, with its value: +** 'callback_free_value': set callback function used to free values in hashtable + +C example: + +[source,C] +---------------------------------------- +void +my_free_value_cb (struct t_hashtable *hashtable, const void *key, void *value) +{ + /* ... */ +} + +weechat_hashtable_set_pointer (hashtable, "callback_free_value", &my_free_value_cb); +---------------------------------------- + +[NOTE] +This function is not available in scripting API. + weechat_hashtable_add_to_infolist ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |