summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-06-27 14:51:37 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-06-27 14:51:37 +0000
commitc26824e1f078b8de0d38cb87d3f291235ab5cf76 (patch)
treefc52ce6341ddec8928a358d67d6764f979e8c3e2 /src/include
parentb692b00052383b6be4c1f7a72505a59103253db5 (diff)
downloads6-rc-c26824e1f078b8de0d38cb87d3f291235ab5cf76.tar.xz
Some brainstorming on dependencies, transitions, service types
Diffstat (limited to 'src/include')
-rw-r--r--src/include/s6-rc/event.h25
1 files changed, 6 insertions, 19 deletions
diff --git a/src/include/s6-rc/event.h b/src/include/s6-rc/event.h
index 8a08dcb..f99b571 100644
--- a/src/include/s6-rc/event.h
+++ b/src/include/s6-rc/event.h
@@ -5,28 +5,15 @@
#include <stdint.h>
-
-typedef enum s6rc_eventtype_e s6rc_eventtype_t, *s6rc_eventtype_t_ref ;
-enum s6rc_eventtype_e
-{
- S6RC_EVENTTYPE_WANTED_STATE_DOWN,
- S6RC_EVENTTYPE_WANTED_STATE_UP,
- S6RC_EVENTTYPE_CURRENT_STATE_DOWN,
- S6RC_EVENTTYPE_CURRENT_STATE_UP,
- S6RC_EVENTTYPE_TRANSITION_STOP,
- S6RC_EVENTTYPE_TRANSITION_START,
- S6RC_EVENTTYPE_CUSTOM, /* for misc events from other processes */
- S6RC_EVENTTYPE_PHAIL
-} ;
-
typedef struct s6rc_event_s s6rc_event_t, *s6rc_event_t_ref ;
struct s6rc_event_s
{
- char const *name ;
- uint32_t value ;
- uint8_t type : 3 ;
- uint8_t extra : 5 ;
+ uint32_t name ;
+ uint32_t instance ;
+ uint8_t wanted : 1 ;
+ uint8_t up : 1 ;
+ uint8_t extra : 6 ;
} ;
-#define S6RC_EVENT_ZERO { .name = 0, .value = 0, .type = S6RC_EVENTTYPE_PHAIL, .extra = 0 }
+#define S6RC_EVENT_ZERO { .name = 0, .instance = 0, .wanted = 0, .updown = 0, .extra = 0 }
#endif