summaryrefslogtreecommitdiff
path: root/src/ck-inhibit.h
diff options
context:
space:
mode:
authorEric Koegel <eric.koegel@gmail.com>2014-10-18 20:26:04 +0300
committerEric Koegel <eric.koegel@gmail.com>2014-10-18 20:26:04 +0300
commitf2cad52e13a91d641a7ea810bd7886f3f024109a (patch)
tree319f7cc3018edebe588f9c6eb367bab00ef193e6 /src/ck-inhibit.h
parentf64e806ba17f34313d8be4e3d05f4316c6912f47 (diff)
downloadConsoleKit2-f2cad52e13a91d641a7ea810bd7886f3f024109a.tar.gz
Fill in the inhibit manager some
And add additional tests for it as we go
Diffstat (limited to 'src/ck-inhibit.h')
-rw-r--r--src/ck-inhibit.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ck-inhibit.h b/src/ck-inhibit.h
index 1a3a026..349e94e 100644
--- a/src/ck-inhibit.h
+++ b/src/ck-inhibit.h
@@ -45,7 +45,7 @@ typedef struct
GObjectClass parent_class;
/*< signals >*/
- gboolean (*changed_event) (CkInhibit *inhibit, gint event);
+ void (*changed_event) (CkInhibit *inhibit, gint event, gboolean enabled);
} CkInhibitClass;
/* The list of events that may be inhibited -- except for event_last :) */
@@ -77,11 +77,14 @@ GType ck_inhibit_get_type (void);
CkInhibit *ck_inhibit_new (void);
-gint ck_create_inhibit_lock (CkInhibit *inhibit,
+gint ck_inhibit_create_lock (CkInhibit *inhibit,
const gchar *who,
const gchar *what,
const gchar *why);
+const gchar *ck_inhibit_get_who (CkInhibit *inhibit);
+const gchar *ck_inhibit_get_why (CkInhibit *inhibit);
+
gboolean ck_inhibit_is_shutdown_inhibited (CkInhibit *inhibit);
gboolean ck_inhibit_is_suspend_inhibited (CkInhibit *inhibit);
gboolean ck_inhibit_is_idle_inhibited (CkInhibit *inhibit);