summaryrefslogtreecommitdiff
path: root/src/ck-inhibit.h
diff options
context:
space:
mode:
authorEric Koegel <eric.koegel@gmail.com>2014-10-14 09:18:41 +0300
committerEric Koegel <eric.koegel@gmail.com>2014-10-14 09:18:41 +0300
commit8db1fa6c624816d1b36d52ba1916adb0966d10db (patch)
treed86390a067243512841d4536a410fae23672277d /src/ck-inhibit.h
parentd04e8e60fa428e2871ee07bbb3ffbf329417c5c0 (diff)
downloadConsoleKit2-8db1fa6c624816d1b36d52ba1916adb0966d10db.tar.gz
More inhibit work
Diffstat (limited to 'src/ck-inhibit.h')
-rw-r--r--src/ck-inhibit.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ck-inhibit.h b/src/ck-inhibit.h
index c2e6191..8d24ba9 100644
--- a/src/ck-inhibit.h
+++ b/src/ck-inhibit.h
@@ -45,6 +45,7 @@ typedef struct
GObjectClass parent_class;
} CkInhibitClass;
+/* The list of events that may be inhibited -- except for event_last :) */
typedef enum
{
CK_INHIBIT_EVENT_SHUTDOWN = 1,
@@ -56,6 +57,10 @@ typedef enum
CK_INHIBIT_EVENT_LAST
} CkInhibitEvent;
+/*
+ * Various error codes for CkInhibit. Except for NO_ERROR, all the values
+ * will be negative.
+ */
typedef enum
{
CK_INHIBIT_ERROR_NO_ERROR = 1,
@@ -67,8 +72,7 @@ typedef enum
GType ck_inhibit_get_type (void);
-CkInhibit *ck_create_inhibit_lock (CkManager *manager,
- CkInhibit *inhibit,
+gint ck_create_inhibit_lock (CkInhibit *inhibit,
const gchar *who,
const gchar *what,
const gchar *why);