summaryrefslogtreecommitdiff
path: root/src/analysis/type-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-02-20 00:26:09 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-02-20 00:26:09 (GMT)
commit66b8d57f0c054065894ab3dd0f1640594013e441 (patch)
treea31cb44088c67d6fe9ee7aa36c67261a6cbd14b4 /src/analysis/type-int.h
parent9ac491cba6aa35959fa1ffdb9ce979060f5f6b26 (diff)
Compute a hash value for data types.
Diffstat (limited to 'src/analysis/type-int.h')
-rw-r--r--src/analysis/type-int.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/analysis/type-int.h b/src/analysis/type-int.h
index f553bf3..2c70c7b 100644
--- a/src/analysis/type-int.h
+++ b/src/analysis/type-int.h
@@ -29,6 +29,9 @@
+/* Calcule une empreinte pour un type de données. */
+typedef guint (* type_hash_fc) (const GDataType *);
+
/* Décrit le type fourni sous forme de caractères. */
typedef GDataType * (* type_dup_fc) (const GDataType *);
@@ -63,6 +66,7 @@ struct _GDataTypeClass
{
GObjectClass parent; /* A laisser en premier */
+ type_hash_fc hash; /* Prise d'empreinte */
type_dup_fc dup; /* Copie d'instance existante */
type_to_string_fc to_string; /* Conversion au format texte */