1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 18:53:12 +02:00

doc: add function hashtable_dup in plugin API reference

This commit is contained in:
Sebastien Helleu
2014-02-14 09:19:03 +01:00
parent b530aa5f5a
commit f4606ef0a9
4 changed files with 133 additions and 5 deletions
+31
View File
@@ -3480,6 +3480,37 @@ weechat_hashtable_map_string (hashtable, &map_cb, NULL);
[NOTE]
This function is not available in scripting API.
==== weechat_hashtable_dup
_WeeChat ≥ 0.4.4._
Duplicate a hashtable.
Prototype:
[source,C]
----
struct t_hashtable *hashtable_dup (struct t_hashtable *hashtable);
----
Arguments:
* 'hashtable': hashtable pointer
Return value:
* duplicated hashtable
C example:
[source,C]
----
struct t_hashtable *new_hashtable = weechat_hashtable_dup (hashtable);
----
[NOTE]
This function is not available in scripting API.
==== weechat_hashtable_get_integer
_WeeChat ≥ 0.3.3._
+36 -5
View File
@@ -3381,7 +3381,7 @@ Paramètres :
* 'hashtable' : pointeur vers la table de hachage
* 'key' : pointeur vers la clé
Valeur en retour :
Valeur de retour :
* valeur pour la clé, NULL si la clé n'est pas trouvée
@@ -3413,7 +3413,7 @@ Paramètres :
* 'hashtable' : pointeur vers la table de hachage
* 'key' : pointeur vers la clé
Valeur en retour :
Valeur de retour :
* 1 si la clé est dans la table de hachage, 0 si la clé n'est pas dans la table
de hachage
@@ -3524,6 +3524,37 @@ weechat_hashtable_map_string (hashtable, &map_cb, NULL);
[NOTE]
Cette fonction n'est pas disponible dans l'API script.
==== weechat_hashtable_dup
_WeeChat ≥ 0.4.4._
Dupliquer une table de hachage.
Prototype :
[source,C]
----
struct t_hashtable *hashtable_dup (struct t_hashtable *hashtable);
----
Paramètres :
* 'hashtable' : pointeur vers la table de hachage
Valeur de retour :
* table de hachage dupliquée
Exemple en C :
[source,C]
----
struct t_hashtable *new_hashtable = weechat_hashtable_dup (hashtable);
----
[NOTE]
Cette fonction n'est pas disponible dans l'API script.
==== weechat_hashtable_get_integer
_WeeChat ≥ 0.3.3._
@@ -3545,7 +3576,7 @@ Paramètres :
** 'size' : taille du tableau interne "htable" dans la table de hachage
** 'items_count' : nombre d'éléments dans la table de hachage
Valeur en retour :
Valeur de retour :
* valeur de la propriété sous forme d'entier
@@ -3600,7 +3631,7 @@ Paramètres :
** 'keys_values_sorted' : chaîne avec la liste des clés et valeurs (triée sur
les clés) (format : "clé1:valeur1,clé2:valeur2,clé3:valeur3")
Valeur en retour :
Valeur de retour :
* valeur de la propriété sous forme de chaîne
@@ -3678,7 +3709,7 @@ Paramètres :
* 'infolist_item' : pointeur vers l'objet de l'infolist
* 'prefix' : chaîne utilisée comme préfixe pour les noms dans l'infolist
Valeur en retour :
Valeur de retour :
* 1 si ok, 0 en cas d'erreur
+33
View File
@@ -3535,6 +3535,39 @@ weechat_hashtable_map_string (hashtable, &map_cb, NULL);
[NOTE]
Questa funzione non è disponibile nelle API per lo scripting.
==== weechat_hashtable_dup
_WeeChat ≥ 0.4.4._
// TRANSLATION MISSING
Duplicate a hashtable.
Prototipo:
[source,C]
----
struct t_hashtable *hashtable_dup (struct t_hashtable *hashtable);
----
Argomenti:
* 'hashtable': puntatore alla tabella hash
Valore restituito:
// TRANSLATION MISSING
* duplicated hashtable
Esempio in C:
[source,C]
----
struct t_hashtable *new_hashtable = weechat_hashtable_dup (hashtable);
----
[NOTE]
Questa funzione non è disponibile nelle API per lo scripting.
==== weechat_hashtable_get_integer
_WeeChat ≥ 0.3.3._
+33
View File
@@ -3477,6 +3477,39 @@ weechat_hashtable_map_string (hashtable, &map_cb, NULL);
[NOTE]
スクリプト API ではこの関数を利用できません。
==== weechat_hashtable_dup
_WeeChat バージョン 0.4.4 以上で利用可。_
// TRANSLATION MISSING
Duplicate a hashtable.
プロトタイプ:
[source,C]
----
struct t_hashtable *hashtable_dup (struct t_hashtable *hashtable);
----
引数:
* 'hashtable': ハッシュテーブルへのポインタ
戻り値:
// TRANSLATION MISSING
* duplicated hashtable
C 言語での使用例:
[source,C]
----
struct t_hashtable *new_hashtable = weechat_hashtable_dup (hashtable);
----
[NOTE]
スクリプト API ではこの関数を利用できません。
==== weechat_hashtable_get_integer
_WeeChat バージョン 0.3.3 以上で利用可。_