diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/en/weechat_plugin_api.en.txt | 37 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.txt | 38 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.txt | 39 |
3 files changed, 114 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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt index 817ae52d2..f94931599 100644 --- a/doc/fr/weechat_plugin_api.fr.txt +++ b/doc/fr/weechat_plugin_api.fr.txt @@ -3310,6 +3310,44 @@ weechat_printf (NULL, "liste des clés: %s", [NOTE] Cette fonction n'est pas disponible dans l'API script. +weechat_hashtable_set_pointer +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +_Nouveau dans la version 0.3.4._ + +Affecte un pointeur à une propriété d'une hashtable. + +Prototype : + +[source,C] +---------------------------------------- +void weechat_hashtable_set_pointer (struct t_hashtable *hashtable, + const char *property, void *pointer); +---------------------------------------- + +Paramètres : + +* 'hashtable' : pointeur vers la hashtable +* 'property' et 'value' : nom de la propriété, avec sa valeur : +** 'callback_free_value' : définit la fonction "callback" pour libérer les + valeurs de la hashtable + +Exemple en C : + +[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] +Cette fonction n'est pas disponible dans l'API script. + weechat_hashtable_add_to_infolist ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt index d7a2ccdde..729061326 100644 --- a/doc/it/weechat_plugin_api.it.txt +++ b/doc/it/weechat_plugin_api.it.txt @@ -3268,6 +3268,45 @@ weechat_printf (NULL, "list of keys: %s", [NOTE] Questa funzione non è disponibile nelle API per lo scripting. +weechat_hashtable_set_pointer +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +_Novità nella versione 0.3.4._ + +// TRANSLATION MISSING +Set pointer value of a hashtable property. + +Prototipo: + +[source,C] +---------------------------------------- +void weechat_hashtable_set_pointer (struct t_hashtable *hashtable, + const char *property, void *pointer); +---------------------------------------- + +Argomenti: + +* 'hashtable': puntatore alla tabella hash +* 'property' e 'value': nome della proprietà, con il proprio valore: +// TRANSLATION MISSING +** 'callback_free_value': set callback function used to free values in hashtable + +Esempio in C: + +[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] +Questa funzione non è disponibile nelle API per lo scripting. + weechat_hashtable_add_to_infolist ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |