Remove command filtering/deferring in the simulation
[neverball] / share / solid_cmd.c
1 #include "solid_cmd.h"
2 #include "cmd.h"
3
4 /*---------------------------------------------------------------------------*/
5
6 static void (*cmd_enq_fn)(const union cmd *);
7
8 void sol_cmd_enq(const union cmd *new)
9 {
10     if (cmd_enq_fn)
11         cmd_enq_fn(new);
12 }
13
14 void sol_cmd_enq_func(void (*enq_fn) (const union cmd *))
15 {
16     cmd_enq_fn = enq_fn;
17 }
18
19 /*---------------------------------------------------------------------------*/