EventNotifierService helps multiple services be notified when an event occurs.
See example below where Service 1 wants to let all other Services (Service 2, 3, 4) about an event.
SUBSCRIBE TO EVENT
Sending this message makes the notifier service send notification to that service upon receiving a specifc event.
Operation:
Defs::Notifier::MO_SUBSCRIBE_FOR_EVENT
Arguments:
[Defs::Notifier::MS_EVN_NOTIFIER][Defs::Notifier::S_SUBSCRIBER] = ServiceName [Defs::Notifier::MS_EVN_NOTIFIER][Defs::Notifier::S_EVENT] = EventName
This makes the notifier service to remove the service from the subscriber list for that event. The Event Name should be added to BootEventDefs.h
Operation:
Defs::Notifier::MO_UNSUBSCRIBE_FROM_EVENT
Arguments:
[Defs::Notifier::MS_EVN_NOTIFIER][Defs::Notifier::S_SUBSCRIBER] = ServiceName [Defs::Notifier::MS_EVN_NOTIFIER][Defs::Notifier::S_EVENT] = EventName
This makes the notifier service to remove the serivce from all events it is subscribed to. The Event Name should be added to BootEventDefs.h
Operation:
Defs::Notifier::MO_UNSUBSCRIBE_FROM_ALL_EVENTS
Arguments:
[Defs::Notifier::MS_EVN_NOTIFIER][Defs::Notifier::S_SUBSCRIBER] = ServiceName
This makes the notifier service to send the event to those that are interested.
Operation:
Defs::Notifier::MO_SIGNAL_EVENT
Arguments:
[Defs::Notifier::MS_EVN_NOTIFIER][Defs::Notifier::S_EVENT] = EventName
Refer to Events for details on various events available.