32 #ifndef __SIMENVCHANGE_H__
33 #define __SIMENVCHANGE_H__
39 void (* doActionsBeforeTick) (void);
40 void (* doActionsAfterTick) (void);
44 extern int simProcessRunValue;
45 extern int simEtimerPending;
46 extern clock_time_t simNextExpirationTime;
47 extern clock_time_t simCurrentTime;
50 extern char simDontFallAsleep;
53 #define SIM_INTERFACE(name, doActionsBeforeTick, doActionsAfterTick) \
54 const struct simInterface name = { doActionsBeforeTick, doActionsAfterTick }
57 #define SIM_INTERFACE_NAME(name) \
58 extern const struct simInterface name
61 #define SIM_INTERFACES(...) \
62 const struct simInterface *simInterfaces[] = {__VA_ARGS__, NULL};
65 void doActionsBeforeTick();
66 void doActionsAfterTick();