From 1a545ba0744532f2936899806523214d3a067769 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Tue, 29 Jan 2008 14:06:45 -0500 Subject: add support for logging start/stop/restart Also enable reporting this information with ck-history. --- src/ck-log-event.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src/ck-log-event.h') 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, @@ -40,6 +42,18 @@ typedef enum CK_LOG_EVENT_SEAT_ACTIVE_SESSION_CHANGED, } CkLogEventType; +typedef struct +{ +} CkLogSystemStopEvent; + +typedef struct +{ +} CkLogSystemRestartEvent; + +typedef struct +{ +} CkLogSystemStartEvent; + typedef struct { char *seat_id; @@ -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; -- cgit