summaryrefslogtreecommitdiff
path: root/src/analysis/scan/items/time
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/time
parent2553a987f2d8ba35d839152a35392ca29b409841 (diff)
Rename the registered items for ROST to make their name more expressive.
Diffstat (limited to 'src/analysis/scan/items/time')
-rw-r--r--src/analysis/scan/items/time/make.c10
-rw-r--r--src/analysis/scan/items/time/make.h6
-rw-r--r--src/analysis/scan/items/time/now.c10
-rw-r--r--src/analysis/scan/items/time/now.h6
4 files changed, 16 insertions, 16 deletions
diff --git a/src/analysis/scan/items/time/make.c b/src/analysis/scan/items/time/make.c
index 477a77c..e7330a3 100644
--- a/src/analysis/scan/items/time/make.c
+++ b/src/analysis/scan/items/time/make.c
@@ -67,7 +67,7 @@ static bool g_scan_time_make_function_run_call(GScanTimeMakeFunction *, GScanExp
/* Indique le type défini pour une conversion de date en nombre de secondes. */
-G_DEFINE_TYPE(GScanTimeMakeFunction, g_scan_time_make_function, G_TYPE_REGISTERED_ITEM);
+G_DEFINE_TYPE(GScanTimeMakeFunction, g_scan_time_make_function, G_TYPE_SCAN_REGISTERED_ITEM);
/******************************************************************************
@@ -85,14 +85,14 @@ G_DEFINE_TYPE(GScanTimeMakeFunction, g_scan_time_make_function, G_TYPE_REGISTERE
static void g_scan_time_make_function_class_init(GScanTimeMakeFunctionClass *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_time_make_function_dispose;
object->finalize = (GObjectFinalizeFunc)g_scan_time_make_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_time_make_function_get_name;
registered->run_call = (run_registered_item_call_fc)g_scan_time_make_function_run_call;
@@ -168,9 +168,9 @@ static void g_scan_time_make_function_finalize(GScanTimeMakeFunction *func)
* *
******************************************************************************/
-GRegisteredItem *g_scan_time_make_function_new(void)
+GScanRegisteredItem *g_scan_time_make_function_new(void)
{
- GRegisteredItem *result; /* Structure à retourner */
+ GScanRegisteredItem *result; /* Structure à retourner */
result = g_object_new(G_TYPE_SCAN_TIME_MAKE_FUNCTION, NULL);
diff --git a/src/analysis/scan/items/time/make.h b/src/analysis/scan/items/time/make.h
index 958a392..f4be276 100644
--- a/src/analysis/scan/items/time/make.h
+++ b/src/analysis/scan/items/time/make.h
@@ -41,17 +41,17 @@
/* Convertisseur de date en nombre de secondes depuis le 01/01/1970 (instance) */
-typedef GRegisteredItem GScanTimeMakeFunction;
+typedef GScanRegisteredItem GScanTimeMakeFunction;
/* Convertisseur de date en nombre de secondes depuis le 01/01/1970 (classe) */
-typedef GRegisteredItemClass GScanTimeMakeFunctionClass;
+typedef GScanRegisteredItemClass GScanTimeMakeFunctionClass;
/* Indique le type défini pour une conversion de date en nombre de secondes. */
GType g_scan_time_make_function_get_type(void);
/* Constitue une fonction de décompte du temps écoulé. */
-GRegisteredItem *g_scan_time_make_function_new(void);
+GScanRegisteredItem *g_scan_time_make_function_new(void);
diff --git a/src/analysis/scan/items/time/now.c b/src/analysis/scan/items/time/now.c
index 16c4aef..7f8b627 100644
--- a/src/analysis/scan/items/time/now.c
+++ b/src/analysis/scan/items/time/now.c
@@ -66,7 +66,7 @@ static bool g_scan_time_now_function_run_call(GScanTimeNowFunction *, GScanExpre
/* Indique le type défini pour un décompte de secondes écoulées depuis le 01/01/1970. */
-G_DEFINE_TYPE(GScanTimeNowFunction, g_scan_time_now_function, G_TYPE_REGISTERED_ITEM);
+G_DEFINE_TYPE(GScanTimeNowFunction, g_scan_time_now_function, G_TYPE_SCAN_REGISTERED_ITEM);
/******************************************************************************
@@ -84,14 +84,14 @@ G_DEFINE_TYPE(GScanTimeNowFunction, g_scan_time_now_function, G_TYPE_REGISTERED_
static void g_scan_time_now_function_class_init(GScanTimeNowFunctionClass *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_time_now_function_dispose;
object->finalize = (GObjectFinalizeFunc)g_scan_time_now_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_time_now_function_get_name;
registered->run_call = (run_registered_item_call_fc)g_scan_time_now_function_run_call;
@@ -167,9 +167,9 @@ static void g_scan_time_now_function_finalize(GScanTimeNowFunction *func)
* *
******************************************************************************/
-GRegisteredItem *g_scan_time_now_function_new(void)
+GScanRegisteredItem *g_scan_time_now_function_new(void)
{
- GRegisteredItem *result; /* Structure à retourner */
+ GScanRegisteredItem *result; /* Structure à retourner */
result = g_object_new(G_TYPE_SCAN_TIME_NOW_FUNCTION, NULL);
diff --git a/src/analysis/scan/items/time/now.h b/src/analysis/scan/items/time/now.h
index 6b3faa2..73ed52a 100644
--- a/src/analysis/scan/items/time/now.h
+++ b/src/analysis/scan/items/time/now.h
@@ -41,17 +41,17 @@
/* Décompte du nombre de seccondes écoulées depuis le 01/01/1970 (instance) */
-typedef GRegisteredItem GScanTimeNowFunction;
+typedef GScanRegisteredItem GScanTimeNowFunction;
/* Décompte du nombre de seccondes écoulées depuis le 01/01/1970 (classe) */
-typedef GRegisteredItemClass GScanTimeNowFunctionClass;
+typedef GScanRegisteredItemClass GScanTimeNowFunctionClass;
/* Indique le type défini pour un décompte de secondes écoulées depuis le 01/01/1970. */
GType g_scan_time_now_function_get_type(void);
/* Constitue une fonction de décompte du temps écoulé. */
-GRegisteredItem *g_scan_time_now_function_new(void);
+GScanRegisteredItem *g_scan_time_now_function_new(void);