diff options
Diffstat (limited to 'src/analysis/db/item-int.h')
-rw-r--r-- | src/analysis/db/item-int.h | 9 |
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 */ |