summaryrefslogtreecommitdiff
path: root/src/core/processors.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-05-11 13:44:46 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-05-11 13:44:46 (GMT)
commitb24aca86f0a096730fa8df440f7493556b39ae46 (patch)
tree9489087f296eab281ac2d621f345866efb1e57f1 /src/core/processors.c
parentf208df5b7b960f1ec89247dda2b34b5d99959201 (diff)
Reorganized processor registrations.
Diffstat (limited to 'src/core/processors.c')
-rw-r--r--src/core/processors.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/core/processors.c b/src/core/processors.c
index 4678d7a..0251f6f 100644
--- a/src/core/processors.c
+++ b/src/core/processors.c
@@ -40,9 +40,6 @@ typedef struct _proc_t
char *name; /* Désignation humaine */
GType instance; /* Type à manipuler en interne */
- init_arch_fc init; /* Phase d'intialisation */
- exit_arch_fc exit; /* Phase de relâchement */
-
} proc_t;
@@ -64,8 +61,6 @@ static proc_t *find_processor_by_key(const char *);
* Paramètres : key = désignation rapide et interne d'un processeur. *
* name = désignation humaine de l'architecture. *
* instance = type GLib représentant le type à instancier. *
-* init = procédure d'initialisation de mécanismes internes.*
-* exit = procédure de suppression de mécanismes internes. *
* *
* Description : Enregistre un processeur pour une architecture donnée. *
* *
@@ -75,7 +70,7 @@ static proc_t *find_processor_by_key(const char *);
* *
******************************************************************************/
-bool register_processor_type(const char *key, const char *name, GType instance, init_arch_fc init, exit_arch_fc exit)
+bool register_processor_type(const char *key, const char *name, GType instance)
{
bool result; /* Bilan à retourner */
proc_t *new; /* Nouvel élément à définir */
@@ -86,9 +81,6 @@ bool register_processor_type(const char *key, const char *name, GType instance,
result = (new == NULL);
- if (init != NULL)
- result &= init();
-
if (result)
{
_processors_definitions = (proc_t *)realloc(_processors_definitions,
@@ -100,9 +92,6 @@ bool register_processor_type(const char *key, const char *name, GType instance,
new->name = strdup(name);
new->instance = instance;
- new->init = init;
- new->exit = exit;
-
}
G_UNLOCK(_pdef_access);