hexagram/include/hexagram/sim.h
2019-05-21 09:25:11 -05:00

23 lines
579 B
C

#ifndef _HEXAGRAM_SIM_H
#define _HEXAGRAM_SIM_H
#include <hexagram/dict.h>
#include <hexagram/can.h>
#include <hexagram/module.h>
typedef struct _hexagram_sim hexagram_sim;
hexagram_sim *hexagram_sim_new();
void hexagram_sim_destroy(hexagram_sim *sim);
int hexagram_sim_add_can_if(hexagram_sim *sim,
const char *name,
hexagram_can_if *can_if);
int hexagram_sim_add_module(hexagram_sim *sim,
hexagram_module *module);
int hexagram_sim_run(hexagram_sim *sim);
#endif /* _HEXAGRAM_SIM_H */