summaryrefslogtreecommitdiff
path: root/src/analysis/db/item-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-09-17 22:06:54 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-09-17 22:06:54 (GMT)
commit3dc843b3f7991dcd738a30821ff56c7fe13f1094 (patch)
tree22b40ef7cd933a57942bd01d61c9e6a07fdd80c6 /src/analysis/db/item-int.h
parent682159e73cfbf8ec61d2f2aba765be1016a30ded (diff)
Kept tracks of current active DB items.
Diffstat (limited to 'src/analysis/db/item-int.h')
-rw-r--r--src/analysis/db/item-int.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/analysis/db/item-int.h b/src/analysis/db/item-int.h
index a6398f9..8bba8a3 100644
--- a/src/analysis/db/item-int.h
+++ b/src/analysis/db/item-int.h
@@ -36,6 +36,12 @@
+/* Calcule le condensat associé à l'élément vu comme clef. */
+typedef guint (* hash_db_item_key_fc) (const GDbItem *);
+
+/* Compare deux éléments en tant que clefs. */
+typedef gboolean (* cmp_db_item_key_fc) (const GDbItem *, const GDbItem *);
+
/* Effectue la comparaison entre deux éléments de collection. */
typedef gint (* cmp_db_item_fc) (GDbItem *, GDbItem *, bool);
@@ -84,6 +90,9 @@ struct _GDbItemClass
DBFeatures feature; /* Fonctionnalité représentée */
+ hash_db_item_key_fc hash_key; /* Condensat de l'élément */
+ cmp_db_item_key_fc cmp_key; /* Comparaison en tant que clef*/
+
cmp_db_item_fc cmp; /* Comparaison entre éléments */
unpack_db_item_fc unpack; /* Réception depuis le réseau */