|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <event_bus.h>

Public Attributes | |
| SubscriptionId | id {0} |
| EventType | type {EventType::None} |
| EventCallback | callback {nullptr} |
| IEventListener * | listener {nullptr} |
| void * | userData {nullptr} |
| bool | active {false} |
One bounded EventBus registration. Callback and listener pointers are non-owning: the subscriber must unregister before its target is destroyed.
| bool ersa::events::Subscription::active {false} |
False means the fixed slot is unused and may be recycled.
| EventCallback ersa::events::Subscription::callback {nullptr} |
Optional C callback used instead of the listener interface.
| SubscriptionId ersa::events::Subscription::id {0} |
Handle returned to callers and used for unsubscribe().
| IEventListener* ersa::events::Subscription::listener {nullptr} |
Optional object listener used instead of the C callback.
| EventType ersa::events::Subscription::type {EventType::None} |
Event filter; None matches every event type.
| void* ersa::events::Subscription::userData {nullptr} |
Caller context passed back unchanged to callback.