-
Committer:
Scott James Remnant
-
Date:
2006-08-16 05:21:13 UTC
-
Revision ID:
scott@netsplit.com-20060816052113-77094d091a20ab75
* upstart/control.h (UpstartMsgType): add messages for triggering
edge and level events, receiving the trigger for an event and for
watching jobs and events.
(UpstartEventTriggerEdgeMsg, UpstartEventTriggerLevelMsg)
(UpstartEventTriggeredMsg, UpstartWatchJobsMsg)
(UpstartUnwatchJobsMsg, UpstartWatchEventsMsg):
(UpstartUnwatchEventsMsg): Add structures for the new messages.
(UpstartMsg): And add them to the union.
* upstart/control.c (WireEventPayload): The event messages can all
share a wire payload type; the watch messages don't need any special
payload.
(upstart_send_msg_to): Add the payloads onto the wire.
(upstart_recv_msg): And take the payloads back off the wire.
* upstart/tests/test_control.c (test_messages): Test the new
message types.