réorganisation de la hiérarchie fsm et renommages / déplacement parse, journal
This commit is contained in:
parent
59b797d965
commit
004c7972cd
|
@ -98,7 +98,7 @@ void fsm_init (char *initial_message_from_main)
|
|||
fsm_journal_event (MESSAGE, FSM, "fsm/dispatch", "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_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)
|
||||
{
|
||||
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/dispatch",
|
||||
"preferences modified: value = ",
|
||||
|
@ -155,7 +156,7 @@ void fsm_set_exec_edit (int choice)
|
|||
if (choice_EXEC_EDIT != choice)
|
||||
{
|
||||
fsm_journal_event (INFO, FSM, "fsm/dispatch", "set_exec_edit()",
|
||||
concat (tab_0 [choice_EXEC_EDIT], " > ", tab_0 [choice], NULL));
|
||||
concat (tab_0 [choice_EXEC_EDIT], " > ", tab_0 [choice], NULL));
|
||||
choice_EXEC_EDIT = choice;
|
||||
}
|
||||
}
|
||||
|
@ -165,7 +166,7 @@ void fsm_set_state_rules_data (int choice)
|
|||
if (choice_STATE_RULES_DATA != choice)
|
||||
{
|
||||
fsm_journal_event (INFO, FSM, "fsm/dispatch", "set_state_rules_data()",
|
||||
concat (tab_1 [choice_STATE_RULES_DATA], " > ", tab_1 [choice], NULL));
|
||||
concat (tab_1 [choice_STATE_RULES_DATA], " > ", tab_1 [choice], NULL));
|
||||
choice_STATE_RULES_DATA = choice;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -91,12 +91,21 @@ void fsm_add_measure (char *measure_name)
|
|||
{
|
||||
fsm_journal_event (DEBUG,
|
||||
MEASURES_TOOLS,
|
||||
"fsm/measure/manage/",
|
||||
"fsm/measures/manager/",
|
||||
"fsm_add_measure()",
|
||||
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) {}
|
||||
|
|
@ -25,9 +25,9 @@
|
|||
|
||||
|
||||
|
||||
#include "../../include/fsm.h"
|
||||
#include "../../include/signal.h"
|
||||
#include "../../include/widget.h"
|
||||
#include "../../../include/fsm.h"
|
||||
#include "../../../include/signal.h"
|
||||
#include "../../../include/widget.h"
|
||||
|
||||
|
||||
// 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 ()
|
||||
{
|
||||
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 ()
|
||||
{
|
||||
fsm_journal_event (MESSAGE, PREFER, "fsm/prefer", "displayables list init()", "");
|
||||
fsm_journal_event (MESSAGE, PREFER, "fsm/preferences/manager", "displayables list < ready to use", "");
|
||||
}
|
||||
|
|
@ -25,8 +25,8 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "../../include/fsm.h"
|
||||
#include "../../include/widget.h"
|
||||
#include "../../../include/fsm.h"
|
||||
#include "../../../include/widget.h"
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
|
@ -72,8 +72,8 @@ void fsm_results_list_init ()
|
|||
{
|
||||
fsm_journal_event (DEBUG,
|
||||
RESULTS,
|
||||
"fsm/",
|
||||
"fsm_results_list_init()",
|
||||
"fsm/results/manager",
|
||||
"fsm results list < ready to use",
|
||||
"");
|
||||
}
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
#include <time.h>
|
||||
#include <string.h>
|
||||
#include <sys/time.h>
|
||||
#include "../../include/fsm.h"
|
||||
#include "../include/fsm.h"
|
||||
|
||||
/******************************************************************************/
|
||||
/* A journal stores chronologically the events */
|
|
@ -29,7 +29,7 @@
|
|||
#include <libxml/xmlreader.h> // http://xmlsoft.org/examples/#parse1.c
|
||||
// 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_WEIGHT 1 << 1
|
Loading…
Reference in New Issue