réorganisation de la hiérarchie fsm et renommages / déplacement parse, journal

This commit is contained in:
Jean Sirmai 2024-09-23 09:47:00 +02:00
parent 59b797d965
commit 004c7972cd
Signed by: jean
GPG Key ID: FB3115C340E057E3
11 changed files with 27 additions and 17 deletions

View File

@ -98,7 +98,7 @@ void fsm_init (char *initial_message_from_main)
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "results list init()", ""); fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "results list init()", "");
fsm_results_list_init(); fsm_results_list_init();
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "displayable list init()", ""); fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "displayables list init()", "");
fsm_displayable_list_init(); fsm_displayable_list_init();
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "preferences list init()", ""); fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "preferences list init()", "");
@ -118,7 +118,8 @@ static int preferences_have_been_modified = FALSE;
void fsm_set_preferences_modified (bool value) void fsm_set_preferences_modified (bool value)
{ {
const char *str_value; const char *str_value;
if (value) str_value = "FALSE"; else str_value = "TRUE"; if (value) str_value = "FALSE"; else str_value = "TRUE"; // maladroit... TODO
fsm_journal_event (INFO, FSM, fsm_journal_event (INFO, FSM,
"fsm/dispatch", "fsm/dispatch",
"preferences modified: value = ", "preferences modified: value = ",

View File

@ -91,12 +91,21 @@ void fsm_add_measure (char *measure_name)
{ {
fsm_journal_event (DEBUG, fsm_journal_event (DEBUG,
MEASURES_TOOLS, MEASURES_TOOLS,
"fsm/measure/manage/", "fsm/measures/manager/",
"fsm_add_measure()", "fsm_add_measure()",
measure_name); measure_name);
} }
void fsm_measures_list_init() {if (0) fsm_tools_list_test();} void fsm_measures_list_init()
{
if (0) fsm_tools_list_test();
fsm_journal_event (DEBUG,
RESULTS,
"fsm/measures/manager",
"fsm measures list < ready to use",
"");
}
void fsm_rule_trig_measure (int rule_id, int object_id, int measure_id) {} void fsm_rule_trig_measure (int rule_id, int object_id, int measure_id) {}

View File

@ -25,9 +25,9 @@
#include "../../include/fsm.h" #include "../../../include/fsm.h"
#include "../../include/signal.h" #include "../../../include/signal.h"
#include "../../include/widget.h" #include "../../../include/widget.h"
// TODO Les noms d'icônes sont utilisés pour deux fonctions distinctes : // TODO Les noms d'icônes sont utilisés pour deux fonctions distinctes :
@ -130,11 +130,11 @@ void fsm_add_displayable (char *displayable_name)
/******************************************************************************/ /******************************************************************************/
void fsm_preferences_list_init () void fsm_preferences_list_init ()
{ {
fsm_journal_event (MESSAGE, PREFER, "fsm/prefer", "preferences list init()", ""); fsm_journal_event (MESSAGE, PREFER, "fsm/preferences/manager", "preferences list < ready to use", "");
} }
void fsm_displayable_list_init () void fsm_displayable_list_init ()
{ {
fsm_journal_event (MESSAGE, PREFER, "fsm/prefer", "displayables list init()", ""); fsm_journal_event (MESSAGE, PREFER, "fsm/preferences/manager", "displayables list < ready to use", "");
} }

View File

@ -25,8 +25,8 @@
#include <stdbool.h> #include <stdbool.h>
#include "../../include/fsm.h" #include "../../../include/fsm.h"
#include "../../include/widget.h" #include "../../../include/widget.h"
/******************************************************************************/ /******************************************************************************/
@ -72,8 +72,8 @@ void fsm_results_list_init ()
{ {
fsm_journal_event (DEBUG, fsm_journal_event (DEBUG,
RESULTS, RESULTS,
"fsm/", "fsm/results/manager",
"fsm_results_list_init()", "fsm results list < ready to use",
""); "");
} }

View File

@ -29,7 +29,7 @@
#include <time.h> #include <time.h>
#include <string.h> #include <string.h>
#include <sys/time.h> #include <sys/time.h>
#include "../../include/fsm.h" #include "../include/fsm.h"
/******************************************************************************/ /******************************************************************************/
/* A journal stores chronologically the events */ /* A journal stores chronologically the events */

View File

@ -29,7 +29,7 @@
#include <libxml/xmlreader.h> // http://xmlsoft.org/examples/#parse1.c #include <libxml/xmlreader.h> // http://xmlsoft.org/examples/#parse1.c
// https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/general.html // https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/general.html
#include "../include/base.h" #include "../../include/base.h"
#define READ_SITE 1 << 0 #define READ_SITE 1 << 0
#define READ_WEIGHT 1 << 1 #define READ_WEIGHT 1 << 1