WIP: ready to work (2)

This commit is contained in:
Adrien Bourmault 2024-03-14 23:15:18 +02:00
parent 4214fc2502
commit f4a730109d
Signed by: neox
GPG Key ID: 95F65F55F682A17A
3 changed files with 22 additions and 1 deletions

View File

@ -62,3 +62,13 @@ struct arrow_t {
uint y; uint y;
uint z; uint z;
}; };
struct model_t {
int id;
}
struct scheduler_t
{
int id;
struct model_t *models;
};

View File

@ -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) // // Model init function (and model discovery) //
// -------------------------------------------------------------------------- // // -------------------------------------------------------------------------- //

View File

@ -32,7 +32,7 @@
// -------------------------------------------------------------------------- // // -------------------------------------------------------------------------- //
// Scheduler init function // // Scheduler init function //
// -------------------------------------------------------------------------- // // -------------------------------------------------------------------------- //
//void sched_init(scheduler_t *scheduler); void sched_init(struct scheduler_t *scheduler);
// -------------------------------------------------------------------------- // // -------------------------------------------------------------------------- //
// Scheduler content destructor function // // Scheduler content destructor function //