|
Very Simple Kernel 0.1.0
|
Data Structures | |
| struct | vsk_EventSubscription |
| Event subscription. More... | |
Typedefs | |
| typedef struct vsk_EventSubscription | vsk_EventSubscription_t |
| Event subscription. | |
Functions | |
| vsk_EventSubscription_t * | vsk_EventSubscription_init (vsk_EventSubscription_t *const self, vsk_Inbox_t *const inbox, vsk_Message_Handler_t const handler, void *const obj) |
| Initializes an event subscription. | |
| void | vsk_EventSubscription_publish (vsk_EventSubscription_t *const self) |
| Publishes the event message to the associated inbox. | |
| vsk_EventSubscription_t * vsk_EventSubscription_init | ( | vsk_EventSubscription_t *const | self, |
| vsk_Inbox_t *const | inbox, | ||
| vsk_Message_Handler_t const | handler, | ||
| void *const | obj ) |
Initializes an event subscription.
| self | Event subscription reference |
| inbox | Inbox to post the event message to |
| handler | Message handler to be called when the event is dispatched |
| obj | Object reference to pass to the handler |
| void vsk_EventSubscription_publish | ( | vsk_EventSubscription_t *const | self | ) |
Publishes the event message to the associated inbox.
| self | Event subscription reference |