From f4a730109d2ed15f1d4a4b522e85b683cfdf8119 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 14 Mar 2024 23:15:18 +0200 Subject: [PATCH] WIP: ready to work (2) --- include/base.h | 10 ++++++++++ include/model.h | 11 +++++++++++ include/scheduler.h | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/include/base.h b/include/base.h index 4302918..eec6641 100644 --- a/include/base.h +++ b/include/base.h @@ -62,3 +62,13 @@ struct arrow_t { uint y; uint z; }; + +struct model_t { + int id; +} + +struct scheduler_t +{ + int id; + struct model_t *models; +}; diff --git a/include/model.h b/include/model.h index 372387a..a991392 100644 --- a/include/model.h +++ b/include/model.h @@ -48,6 +48,17 @@ /* -------------------------------------------------------------------------- */ +bool model_init(const char *content, size_t length, const char *basename); +bool model_shutdown(void); + +char model_get_dim(void); +long model_get_dim_value(const char *axis); +char model_get_multiplicity(void); +bool model_get_next_state(char *new_state_id); +bool model_get_next_arrow(struct arrow_t *new_arrow, + const char *state_id, + char dimension); + // -------------------------------------------------------------------------- // // Model init function (and model discovery) // // -------------------------------------------------------------------------- // diff --git a/include/scheduler.h b/include/scheduler.h index 449a5e8..1a4b057 100644 --- a/include/scheduler.h +++ b/include/scheduler.h @@ -32,7 +32,7 @@ // -------------------------------------------------------------------------- // // Scheduler init function // // -------------------------------------------------------------------------- // -//void sched_init(scheduler_t *scheduler); +void sched_init(struct scheduler_t *scheduler); // -------------------------------------------------------------------------- // // Scheduler content destructor function //