launch_daemon: Implemented sticky events, and registration.

* Sticky events are events that keep their signal raised, ie. even if
  a job is initialized afterwards, it will still be triggered.
* Consolidated naming for external events.
* Events are now registered once they are actually being used. This
  allows them to allocate the resources they need to do their thing.
This commit is contained in:
Axel Dörfler
2015-10-17 14:16:26 +02:00
parent 5ab2b1457b
commit 7cd19b7e5c
9 changed files with 178 additions and 58 deletions
+5
View File
@@ -211,8 +211,13 @@ on {
The latter form can be used to solve ambiguous event definitions.
By specifying the \c B_STICKY_EVENT flag, you can mark the event as being
a permanent change. Once triggered, such an event will stay triggered, ie.
even new targets or jobs will consider it triggered.
\param source The messenger the event is coming from.
\param name The name of the event.
\param flags Flags for the event as described.
\return B_OK if the event could be registered, otherwise an error code.
\since Haiku R1