4 #include <System/Events.h>
8 using System::Events::Event;
9 using namespace System::Notifiers;
13 #include <servers/core/event/Event/EventTrigger.h>
20 virtual ~EventTrigger()
24 virtual void notify(VStruct *info) = 0;
27 class SyncEventTrigger {
28 EventTrigger *real_trigger;
31 #include <servers/core/event/Event/SyncEventTrigger.h>
33 SyncEventTrigger(EventTrigger *real)
39 void notify(VStruct *info)
41 real_trigger->notify(info);
45 class EventDispatcher {
47 #include <servers/core/event/Event/EventDispatcher.h>
54 void setup_trigger(Event *event, Notifier *trigger);
55 void setup_sync_trigger(Event *event, SyncNotifier *trigger);
57 typedef void (*KFunc)(VStruct *info);
59 void setup_kfunc_event(KFunc func, SyncNotifier *trigger);
63 #include <servers/core/event/footer.cc>