summaryrefslogtreecommitdiff
path: root/src/analysis/scan/items/magic
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-10-06 11:41:46 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-10-06 11:41:46 (GMT)
commitedb4cc9c11c417d81b1948d93dfd171f0696217a (patch)
treef4d4d121f6a7428c06cf9e6610113a9d3755a461 /src/analysis/scan/items/magic
parent2553a987f2d8ba35d839152a35392ca29b409841 (diff)
Rename the registered items for ROST to make their name more expressive.
Diffstat (limited to 'src/analysis/scan/items/magic')
-rw-r--r--src/analysis/scan/items/magic/mime-encoding.c10
-rw-r--r--src/analysis/scan/items/magic/mime-encoding.h6
-rw-r--r--src/analysis/scan/items/magic/mime-type.c10
-rw-r--r--src/analysis/scan/items/magic/mime-type.h6
-rw-r--r--src/analysis/scan/items/magic/type.c10
-rw-r--r--src/analysis/scan/items/magic/type.h6
6 files changed, 24 insertions, 24 deletions
diff --git a/src/analysis/scan/items/magic/mime-encoding.c b/src/analysis/scan/items/magic/mime-encoding.c
index 935515d..aee23ff 100644
--- a/src/analysis/scan/items/magic/mime-encoding.c
+++ b/src/analysis/scan/items/magic/mime-encoding.c
@@ -64,7 +64,7 @@ static bool g_scan_mime_encoding_function_run_call(GScanMimeEncodingFunction *,
/* Indique le type défini pour une reconnaissance d'encodages de contenus. */
-G_DEFINE_TYPE(GScanMimeEncodingFunction, g_scan_mime_encoding_function, G_TYPE_REGISTERED_ITEM);
+G_DEFINE_TYPE(GScanMimeEncodingFunction, g_scan_mime_encoding_function, G_TYPE_SCAN_REGISTERED_ITEM);
/******************************************************************************
@@ -82,14 +82,14 @@ G_DEFINE_TYPE(GScanMimeEncodingFunction, g_scan_mime_encoding_function, G_TYPE_R
static void g_scan_mime_encoding_function_class_init(GScanMimeEncodingFunctionClass *klass)
{
GObjectClass *object; /* Autre version de la classe */
- GRegisteredItemClass *registered; /* Version de classe parente */
+ GScanRegisteredItemClass *registered; /* Version de classe parente */
object = G_OBJECT_CLASS(klass);
object->dispose = (GObjectFinalizeFunc/* ! */)g_scan_mime_encoding_function_dispose;
object->finalize = (GObjectFinalizeFunc)g_scan_mime_encoding_function_finalize;
- registered = G_REGISTERED_ITEM_CLASS(klass);
+ registered = G_SCAN_REGISTERED_ITEM_CLASS(klass);
registered->get_name = (get_registered_item_name_fc)g_scan_mime_encoding_function_get_name;
registered->run_call = (run_registered_item_call_fc)g_scan_mime_encoding_function_run_call;
@@ -165,9 +165,9 @@ static void g_scan_mime_encoding_function_finalize(GScanMimeEncodingFunction *fu
* *
******************************************************************************/
-GRegisteredItem *g_scan_mime_encoding_function_new(void)
+GScanRegisteredItem *g_scan_mime_encoding_function_new(void)
{
- GRegisteredItem *result; /* Structure à retourner */
+ GScanRegisteredItem *result; /* Structure à retourner */
result = g_object_new(G_TYPE_SCAN_MIME_ENCODING_FUNCTION, NULL);
diff --git a/src/analysis/scan/items/magic/mime-encoding.h b/src/analysis/scan/items/magic/mime-encoding.h
index 9349d55..45ac241 100644
--- a/src/analysis/scan/items/magic/mime-encoding.h
+++ b/src/analysis/scan/items/magic/mime-encoding.h
@@ -41,17 +41,17 @@
/* Reconnaissance d'encodages de contenus (instance) */
-typedef GRegisteredItem GScanMimeEncodingFunction;
+typedef GScanRegisteredItem GScanMimeEncodingFunction;
/* Reconnaissance d'encodages de contenus (classe) */
-typedef GRegisteredItemClass GScanMimeEncodingFunctionClass;
+typedef GScanRegisteredItemClass GScanMimeEncodingFunctionClass;
/* Indique le type défini pour une reconnaissance d'encodages de contenus. */
GType g_scan_mime_encoding_function_get_type(void);
/* Constitue une fonction de cernement d'encodages de contenus. */
-GRegisteredItem *g_scan_mime_encoding_function_new(void);
+GScanRegisteredItem *g_scan_mime_encoding_function_new(void);
diff --git a/src/analysis/scan/items/magic/mime-type.c b/src/analysis/scan/items/magic/mime-type.c
index 95e441d..0635a33 100644
--- a/src/analysis/scan/items/magic/mime-type.c
+++ b/src/analysis/scan/items/magic/mime-type.c
@@ -64,7 +64,7 @@ static bool g_scan_mime_type_function_run_call(GScanMimeTypeFunction *, GScanExp
/* Indique le type défini pour une reconnaissance de types de contenus. */
-G_DEFINE_TYPE(GScanMimeTypeFunction, g_scan_mime_type_function, G_TYPE_REGISTERED_ITEM);
+G_DEFINE_TYPE(GScanMimeTypeFunction, g_scan_mime_type_function, G_TYPE_SCAN_REGISTERED_ITEM);
/******************************************************************************
@@ -82,14 +82,14 @@ G_DEFINE_TYPE(GScanMimeTypeFunction, g_scan_mime_type_function, G_TYPE_REGISTERE
static void g_scan_mime_type_function_class_init(GScanMimeTypeFunctionClass *klass)
{
GObjectClass *object; /* Autre version de la classe */
- GRegisteredItemClass *registered; /* Version de classe parente */
+ GScanRegisteredItemClass *registered; /* Version de classe parente */
object = G_OBJECT_CLASS(klass);
object->dispose = (GObjectFinalizeFunc/* ! */)g_scan_mime_type_function_dispose;
object->finalize = (GObjectFinalizeFunc)g_scan_mime_type_function_finalize;
- registered = G_REGISTERED_ITEM_CLASS(klass);
+ registered = G_SCAN_REGISTERED_ITEM_CLASS(klass);
registered->get_name = (get_registered_item_name_fc)g_scan_mime_type_function_get_name;
registered->run_call = (run_registered_item_call_fc)g_scan_mime_type_function_run_call;
@@ -165,9 +165,9 @@ static void g_scan_mime_type_function_finalize(GScanMimeTypeFunction *func)
* *
******************************************************************************/
-GRegisteredItem *g_scan_mime_type_function_new(void)
+GScanRegisteredItem *g_scan_mime_type_function_new(void)
{
- GRegisteredItem *result; /* Structure à retourner */
+ GScanRegisteredItem *result; /* Structure à retourner */
result = g_object_new(G_TYPE_SCAN_MIME_TYPE_FUNCTION, NULL);
diff --git a/src/analysis/scan/items/magic/mime-type.h b/src/analysis/scan/items/magic/mime-type.h
index e02ce0f..f46cd15 100644
--- a/src/analysis/scan/items/magic/mime-type.h
+++ b/src/analysis/scan/items/magic/mime-type.h
@@ -41,17 +41,17 @@
/* Reconnaissance de types de contenus (instance) */
-typedef GRegisteredItem GScanMimeTypeFunction;
+typedef GScanRegisteredItem GScanMimeTypeFunction;
/* Reconnaissance de types de contenus (classe) */
-typedef GRegisteredItemClass GScanMimeTypeFunctionClass;
+typedef GScanRegisteredItemClass GScanMimeTypeFunctionClass;
/* Indique le type défini pour une reconnaissance de types de contenus. */
GType g_scan_mime_type_function_get_type(void);
/* Constitue une fonction d'identification de types de contenus. */
-GRegisteredItem *g_scan_mime_type_function_new(void);
+GScanRegisteredItem *g_scan_mime_type_function_new(void);
diff --git a/src/analysis/scan/items/magic/type.c b/src/analysis/scan/items/magic/type.c
index f87c34a..43b16ff 100644
--- a/src/analysis/scan/items/magic/type.c
+++ b/src/analysis/scan/items/magic/type.c
@@ -64,7 +64,7 @@ static bool g_scan_magic_type_function_run_call(GScanMagicTypeFunction *, GScanE
/* Indique le type défini pour une reconnaissance de types de contenus. */
-G_DEFINE_TYPE(GScanMagicTypeFunction, g_scan_magic_type_function, G_TYPE_REGISTERED_ITEM);
+G_DEFINE_TYPE(GScanMagicTypeFunction, g_scan_magic_type_function, G_TYPE_SCAN_REGISTERED_ITEM);
/******************************************************************************
@@ -82,14 +82,14 @@ G_DEFINE_TYPE(GScanMagicTypeFunction, g_scan_magic_type_function, G_TYPE_REGISTE
static void g_scan_magic_type_function_class_init(GScanMagicTypeFunctionClass *klass)
{
GObjectClass *object; /* Autre version de la classe */
- GRegisteredItemClass *registered; /* Version de classe parente */
+ GScanRegisteredItemClass *registered; /* Version de classe parente */
object = G_OBJECT_CLASS(klass);
object->dispose = (GObjectFinalizeFunc/* ! */)g_scan_magic_type_function_dispose;
object->finalize = (GObjectFinalizeFunc)g_scan_magic_type_function_finalize;
- registered = G_REGISTERED_ITEM_CLASS(klass);
+ registered = G_SCAN_REGISTERED_ITEM_CLASS(klass);
registered->get_name = (get_registered_item_name_fc)g_scan_magic_type_function_get_name;
registered->run_call = (run_registered_item_call_fc)g_scan_magic_type_function_run_call;
@@ -165,9 +165,9 @@ static void g_scan_magic_type_function_finalize(GScanMagicTypeFunction *func)
* *
******************************************************************************/
-GRegisteredItem *g_scan_magic_type_function_new(void)
+GScanRegisteredItem *g_scan_magic_type_function_new(void)
{
- GRegisteredItem *result; /* Structure à retourner */
+ GScanRegisteredItem *result; /* Structure à retourner */
result = g_object_new(G_TYPE_SCAN_MAGIC_TYPE_FUNCTION, NULL);
diff --git a/src/analysis/scan/items/magic/type.h b/src/analysis/scan/items/magic/type.h
index bfad213..7a26da3 100644
--- a/src/analysis/scan/items/magic/type.h
+++ b/src/analysis/scan/items/magic/type.h
@@ -41,17 +41,17 @@
/* Reconnaissance de types de contenus (instance) */
-typedef GRegisteredItem GScanMagicTypeFunction;
+typedef GScanRegisteredItem GScanMagicTypeFunction;
/* Reconnaissance de types de contenus (classe) */
-typedef GRegisteredItemClass GScanMagicTypeFunctionClass;
+typedef GScanRegisteredItemClass GScanMagicTypeFunctionClass;
/* Indique le type défini pour une reconnaissance de types de contenus. */
GType g_scan_magic_type_function_get_type(void);
/* Constitue une fonction d'identification de types de contenus. */
-GRegisteredItem *g_scan_magic_type_function_new(void);
+GScanRegisteredItem *g_scan_magic_type_function_new(void);