summaryrefslogtreecommitdiff
path: root/src/ck-inhibit-manager.c
AgeCommit message (Collapse)AuthorFilesLines
2015-07-26Prevent infinite loop when removing inhibitorsEric Koegel1-1/+1
2015-06-21Add new DBUS method: ListInhibitorsEric Koegel1-2/+25
Returns the current list of inhibitors, an array of strings representing the what, who, why, mode, and two unsigned int32 representing the user ID and process ID. This is the same method that logind uses. Needed to have inhibit track the uid/pid of the caller to mirror what logind returns.
2015-06-07Fix inhibit FD passing with GDBusEric Koegel1-0/+10
2015-06-07Add "mode" to the inhibit callEric Koegel1-45/+150
Now we support the mode string of the inhibit dbus call. It can either be a "block" or "delay". If no delay lock is done, a system call action will delay 2 seconds to give applications time to save state. Holding a delay lock will increase the timeout to a max of 8 seconds.
2014-10-19Inhibit Manager now emits event changed signalsEric Koegel1-2/+68
When the inhibit lock increments to 1 it will be TRUE and when it reaches 0 it will be FALSE. Additional locks above 1 will not emit a signal but the manager will keep track.
2014-10-18Fill in the inhibit manager someEric Koegel1-13/+126
And add additional tests for it as we go
2014-10-17Emit signals on inhibit changesEric Koegel1-0/+175
Also start working on the inhibit manager.