summaryrefslogtreecommitdiff
path: root/src/analysis/db/item-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-09-29 21:27:03 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-09-29 21:27:03 (GMT)
commit3a83a06db8ee27eafcd0219d1d26bf2af23737f5 (patch)
tree163ea7fbe1435b9f380e7ae96dfc36d8f16d1d0a /src/analysis/db/item-int.h
parent55bc8570f25a479b222733c4093f9ae996c9f68e (diff)
Cleaned the DB code a little bit.
Diffstat (limited to 'src/analysis/db/item-int.h')
-rw-r--r--src/analysis/db/item-int.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/analysis/db/item-int.h b/src/analysis/db/item-int.h
index 93472c5..5977bdb 100644
--- a/src/analysis/db/item-int.h
+++ b/src/analysis/db/item-int.h
@@ -43,7 +43,7 @@ typedef guint (* hash_db_item_key_fc) (const GDbItem *);
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);
+typedef gint (* cmp_db_item_fc) (const GDbItem *, const GDbItem *);
/* Importe la définition d'une base d'éléments pour collection. */
typedef bool (* unpack_db_item_fc) (GDbItem *, packed_buffer *);
@@ -52,7 +52,7 @@ typedef bool (* unpack_db_item_fc) (GDbItem *, packed_buffer *);
typedef bool (* pack_db_item_fc) (const GDbItem *, packed_buffer *);
/* Construit la description humaine d'un signet sur un tampon. */
-typedef char * (* build_item_label_fc) (GDbItem *);
+typedef char * (* build_item_label_fc) (const GDbItem *);
/* Exécute un élément de collection sur un binaire. */
typedef bool (* run_item_fc) (GDbItem *, GLoadedBinary *);
@@ -92,7 +92,6 @@ struct _GDbItemClass
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 */