summaryrefslogtreecommitdiffstats
path: root/src/ck-log-event.h
diff options
context:
space:
mode:
authorWilliam Jon McCann <mccann@jhu.edu>2008-01-29 14:06:45 -0500
committerWilliam Jon McCann <mccann@jhu.edu>2008-01-29 14:06:45 -0500
commit1a545ba0744532f2936899806523214d3a067769 (patch)
treef2dd0433cb92d740626e1b1a008e5b22e2ee1c4d /src/ck-log-event.h
parentd8dcc8755a87a238ba37bc5275f142c92535915e (diff)
add support for logging start/stop/restart
Also enable reporting this information with ck-history.
Diffstat (limited to 'src/ck-log-event.h')
-rw-r--r--src/ck-log-event.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/ck-log-event.h b/src/ck-log-event.h
index f5defed..149f49b 100644
--- a/src/ck-log-event.h
+++ b/src/ck-log-event.h
@@ -29,7 +29,9 @@ typedef enum
{
CK_LOG_EVENT_START = 0,
CK_LOG_EVENT_STOP,
- CK_LOG_EVENT_SYSTEM_SHUTDOWN,
+ CK_LOG_EVENT_SYSTEM_START,
+ CK_LOG_EVENT_SYSTEM_STOP,
+ CK_LOG_EVENT_SYSTEM_RESTART,
CK_LOG_EVENT_SYSTEM_RUNLEVEL_CHANGED,
CK_LOG_EVENT_SEAT_ADDED,
CK_LOG_EVENT_SEAT_REMOVED,
@@ -42,6 +44,18 @@ typedef enum
typedef struct
{
+} CkLogSystemStopEvent;
+
+typedef struct
+{
+} CkLogSystemRestartEvent;
+
+typedef struct
+{
+} CkLogSystemStartEvent;
+
+typedef struct
+{
char *seat_id;
int seat_kind;
} CkLogSeatAddedEvent;
@@ -103,6 +117,9 @@ typedef struct
typedef struct
{
union {
+ CkLogSystemRestartEvent system_start;
+ CkLogSystemStopEvent system_stop;
+ CkLogSystemRestartEvent system_restart;
CkLogSeatAddedEvent seat_added;
CkLogSeatRemovedEvent seat_removed;
CkLogSeatSessionAddedEvent seat_session_added;