summaryrefslogtreecommitdiff
path: root/src/test-manager.c
AgeCommit message (Collapse)AuthorFilesLines
2015-06-21Add new DBUS method: ListInhibitorsEric Koegel1-0/+2
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-14test-manager: clean up test sessionsEric Koegel1-2/+26
2015-06-08Port list-sessions.c to GDBusEric Koegel1-0/+1
The ck-connector only uses libdbus and not dbus-glib and it handles OOM. Going to GDBus wouldn't let us properly handle OOM because glib just aborts when g_malloc hits the OOM. So we'll leave that. This patch removes the dbus-glib dependency as everything has been ported. For: https://github.com/ConsoleKit2/ConsoleKit2/issues/8
2015-06-07Fix inhibit FD passing with GDBusEric Koegel1-39/+56
2015-06-07Add "mode" to the inhibit callEric Koegel1-1/+11
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.
2015-04-13Prevent more warnings from GDBusEric Koegel1-22/+90
GDBus/GVariant dislikes NULL strings so we have to add workarounds for that shortcoming.
2015-04-13Add to test-managerEric Koegel1-6/+102
Add some checks for opening and closing sessions from the Manager. Also unref the variants that get created and close the inhibit fd when done.
2015-04-13Add a test-manager programEric Koegel1-0/+169
Fix make distcheck, bump minimum glib to 2.40 since we're using that with this port to GDBus. Properly return the error messages when calling Inhbit and it fails and fix some other GDBus return values.