diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2021-02-20 00:26:09 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2021-02-20 00:26:09 (GMT) |
commit | 66b8d57f0c054065894ab3dd0f1640594013e441 (patch) | |
tree | a31cb44088c67d6fe9ee7aa36c67261a6cbd14b4 /src/analysis/type-int.h | |
parent | 9ac491cba6aa35959fa1ffdb9ce979060f5f6b26 (diff) |
Compute a hash value for data types.
Diffstat (limited to 'src/analysis/type-int.h')
-rw-r--r-- | src/analysis/type-int.h | 4 |
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 */ |