diff options
Diffstat (limited to 'src/analysis/scan/items/uint.h')
-rw-r--r-- | src/analysis/scan/items/uint.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/analysis/scan/items/uint.h b/src/analysis/scan/items/uint.h index 60f2975..abc2231 100644 --- a/src/analysis/scan/items/uint.h +++ b/src/analysis/scan/items/uint.h @@ -2,7 +2,7 @@ /* Chrysalide - Outil d'analyse de fichiers binaires * uint.h - prototypes pour la lecture d'un mot à partir de données binaires * - * Copyright (C) 2022 Cyrille Bagard + * Copyright (C) 2023 Cyrille Bagard * * This file is part of Chrysalide. * @@ -28,30 +28,31 @@ #include <glib-object.h> +#include "../item.h" #include "../../../arch/archbase.h" -#define G_TYPE_UINT_FUNCTION g_uint_function_get_type() -#define G_UINT_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_UINT_FUNCTION, GUintFunction)) -#define G_IS_UINT_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_UINT_FUNCTION)) -#define G_UINT_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_UINT_FUNCTION, GUintFunctionClass)) -#define G_IS_UINT_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_UINT_FUNCTION)) -#define G_UINT_FUNCTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_UINT_FUNCTION, GUintFunctionClass)) +#define G_TYPE_SCAN_UINT_FUNCTION g_scan_uint_function_get_type() +#define G_SCAN_UINT_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_SCAN_UINT_FUNCTION, GScanUintFunction)) +#define G_IS_SCAN_UINT_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_SCAN_UINT_FUNCTION)) +#define G_SCAN_UINT_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_SCAN_UINT_FUNCTION, GScanUintFunctionClass)) +#define G_IS_SCAN_UINT_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_SCAN_UINT_FUNCTION)) +#define G_SCAN_UINT_FUNCTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_SCAN_UINT_FUNCTION, GScanUintFunctionClass)) /* Fonction conduisant à la lecture d'un mot (instance) */ -typedef struct _GUintFunction GUintFunction; +typedef struct _GScanUintFunction GScanUintFunction; /* Fonction conduisant à la lecture d'un mot (classe) */ -typedef struct _GUintFunctionClass GUintFunctionClass; +typedef struct _GScanUintFunctionClass GScanUintFunctionClass; /* Indique le type défini pour une lecture de mot à partir de données binaires. */ -GType g_uint_function_get_type(void); +GType g_scan_uint_function_get_type(void); /* Constitue une fonction de lecture de valeur entière. */ -GUintFunction *g_uint_function_new(MemoryDataSize); +GRegisteredItem *g_scan_uint_function_new(MemoryDataSize, SourceEndian); |