summaryrefslogtreecommitdiff
path: root/src/analysis/scan/patterns
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-09-14 00:03:11 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-09-14 00:03:11 (GMT)
commit7bcd11e1425a53eff5aca62764658a6dc5f8c389 (patch)
treeba41fc52b2b4e7e0507d6eddf8f6ae919a2c9515 /src/analysis/scan/patterns
parentee049595816cc0c5742d9523802345ad4121619f (diff)
Fix inheritance for modifier lists.
Diffstat (limited to 'src/analysis/scan/patterns')
-rw-r--r--src/analysis/scan/patterns/modifiers/list-int.h4
-rw-r--r--src/analysis/scan/patterns/modifiers/list.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/analysis/scan/patterns/modifiers/list-int.h b/src/analysis/scan/patterns/modifiers/list-int.h
index c8ed64b..3ba253e 100644
--- a/src/analysis/scan/patterns/modifiers/list-int.h
+++ b/src/analysis/scan/patterns/modifiers/list-int.h
@@ -35,7 +35,7 @@
/* Liste de transformations d'une séquence d'octets (instance) */
struct _GScanModifierList
{
- GObject parent; /* A laisser en premier */
+ GScanTokenModifier parent; /* A laisser en premier */
GScanTokenModifier **modifiers; /* Liste de transformateurs */
size_t count; /* Taille de cette liste */
@@ -45,7 +45,7 @@ struct _GScanModifierList
/* Liste de transformations d'une séquence d'octets (classe) */
struct _GScanModifierListClass
{
- GObjectClass parent; /* A laisser en premier */
+ GScanTokenModifierClass parent; /* A laisser en premier */
};
diff --git a/src/analysis/scan/patterns/modifiers/list.c b/src/analysis/scan/patterns/modifiers/list.c
index e08d509..141fa54 100644
--- a/src/analysis/scan/patterns/modifiers/list.c
+++ b/src/analysis/scan/patterns/modifiers/list.c
@@ -66,7 +66,7 @@ static bool g_scan_modifier_list_transform(const GScanModifierList *, const size
/* Indique le type défini pour une série de transformations d'octets. */
-G_DEFINE_TYPE(GScanModifierList, g_scan_modifier_list, G_TYPE_OBJECT);
+G_DEFINE_TYPE(GScanModifierList, g_scan_modifier_list, G_TYPE_SCAN_TOKEN_MODIFIER);
/******************************************************************************