Showing
2 changed files
with
2 additions
and
8 deletions
| @@ -47,7 +47,7 @@ TR_CLASSVARS_DECL(TR_EventHandler) { | @@ -47,7 +47,7 @@ TR_CLASSVARS_DECL(TR_EventHandler) { | ||
| 47 | }; | 47 | }; |
| 48 | 48 | ||
| 49 | void TR_eventHandlerSetDispatcher(TR_EventHandler, TR_EventDispatcher); | 49 | void TR_eventHandlerSetDispatcher(TR_EventHandler, TR_EventDispatcher); |
| 50 | -void TR_eventHandlerIssueEvent(TR_EventHandler, TR_EventSubject, int, void *); | 50 | +void TR_eventHandlerIssueEvent(TR_EventHandler, TR_Event); |
| 51 | int TR_eventHandlerHandleEvent(TR_EventHandler, TR_Event); | 51 | int TR_eventHandlerHandleEvent(TR_EventHandler, TR_Event); |
| 52 | 52 | ||
| 53 | #define TR_eventHandlerClassCleanup(cname) \ | 53 | #define TR_eventHandlerClassCleanup(cname) \ |
| @@ -24,16 +24,10 @@ | @@ -24,16 +24,10 @@ | ||
| 24 | 24 | ||
| 25 | #include "tr/event.h" | 25 | #include "tr/event.h" |
| 26 | #include "tr/event_handler.h" | 26 | #include "tr/event_handler.h" |
| 27 | -#include "tr/event_subject.h" | ||
| 28 | 27 | ||
| 29 | void | 28 | void |
| 30 | -TR_eventHandlerIssueEvent( | ||
| 31 | - TR_EventHandler this, | ||
| 32 | - TR_EventSubject subject, | ||
| 33 | - int idx, | ||
| 34 | - void * data) | 29 | +TR_eventHandlerIssueEvent(TR_EventHandler this, TR_Event event) |
| 35 | { | 30 | { |
| 36 | - TR_Event event = TR_eventSubjectEmit(subject, idx, data); | ||
| 37 | int i; | 31 | int i; |
| 38 | 32 | ||
| 39 | for (i=0; i<this->ndispatcher; i++) { | 33 | for (i=0; i<this->ndispatcher; i++) { |
Please
register
or
login
to post a comment