Commit 36e2f3088b22ddc169322f1d31266b0c4f9b6a70
1 parent
564e2f30
return success or failure on event issue
Showing
2 changed files
with
6 additions
and
2 deletions
... | ... | @@ -47,7 +47,7 @@ TR_CLASSVARS_DECL(TR_EventHandler) { |
47 | 47 | }; |
48 | 48 | |
49 | 49 | void TR_eventHandlerSetDispatcher(TR_EventHandler, TR_EventDispatcher); |
50 | -void TR_eventHandlerIssueEvent(TR_EventHandler, TR_Event); | |
50 | +int TR_eventHandlerIssueEvent(TR_EventHandler, TR_Event); | |
51 | 51 | TR_EventDone TR_eventHandlerHandleEvent(TR_EventHandler, TR_Event); |
52 | 52 | |
53 | 53 | #define TR_eventHandlerClassCleanup(cname) \ | ... | ... |
... | ... | @@ -27,7 +27,7 @@ |
27 | 27 | #include "tr/event.h" |
28 | 28 | #include "tr/event_handler.h" |
29 | 29 | |
30 | -void | |
30 | +int | |
31 | 31 | TR_eventHandlerIssueEvent(TR_EventHandler this, TR_Event event) |
32 | 32 | { |
33 | 33 | if (event) { |
... | ... | @@ -44,7 +44,11 @@ TR_eventHandlerIssueEvent(TR_EventHandler this, TR_Event event) |
44 | 44 | event->subject, |
45 | 45 | event->serial); |
46 | 46 | } |
47 | + | |
48 | + return TRUE; | |
47 | 49 | } |
50 | + | |
51 | + return FALSE; | |
48 | 52 | } |
49 | 53 | |
50 | 54 | // vim: set ts=4 sw=4: | ... | ... |
Please
register
or
login
to post a comment