… | |
… | |
29 | |
29 | |
30 | static int has_quit; |
30 | static int has_quit; |
31 | |
31 | |
32 | void event_main_loop_run(void) |
32 | void event_main_loop_run(void) |
33 | { |
33 | { |
34 | if (! event_methods.main_loop_run) { |
34 | if (! event_methods.main_loop_run) |
|
|
35 | { |
35 | dbg(0,"no event system set\n"); |
36 | dbg(0,"no event system set\n"); |
36 | return; |
37 | return; |
37 | } |
38 | } |
38 | event_methods.main_loop_run(); |
39 | event_methods.main_loop_run(); |
39 | } |
40 | } |
40 | |
41 | |
41 | void event_main_loop_quit(void) |
42 | void event_main_loop_quit(void) |
42 | { |
43 | { |
43 | if (event_methods.main_loop_quit) |
44 | if (event_methods.main_loop_quit) |
|
|
45 | { |
44 | event_methods.main_loop_quit(); |
46 | event_methods.main_loop_quit(); |
|
|
47 | } |
45 | has_quit=1; |
48 | has_quit=1; |
46 | } |
49 | } |
47 | |
50 | |
48 | int |
51 | int |
49 | event_main_loop_has_quit(void) |
52 | event_main_loop_has_quit(void) |