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 //