summaryrefslogtreecommitdiff
path: root/src/ck-manager.h
AgeCommit message (Collapse)AuthorFilesLines
2015-06-21Add new DBUS method: ListInhibitorsEric Koegel1-0/+1
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-05-10Return NULL when there's no sessions or seatsEric Koegel1-0/+2
When calling get_sessions/seats return NULL + an error stating that there's nothing to return. This makes the GDBus branch work like the pre-GDBus code.
2015-04-13Add a test-manager programEric Koegel1-0/+2
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.
2015-04-13Port CkManager to GDBusEric Koegel1-112/+13
Quite a bit of work here. ck-session-leader needs to be ported.
2014-11-17Add the PrepareForSleep/Shutdown signalsEric Koegel1-0/+4
This patch adds the PrepareForSleep/Shutdown signals so apps can listed for these signals and perform operations prior to the event such as logging out of online chatrooms.
2014-10-26Emulate the logind dbus API betterEric Koegel1-0/+16
This patch: - Adds the PowerOff/Reboot and respective Can APIs. - Adds the PolkicyKit interactivity flag for the power and suspend API calls. Same as logind. - Adds a note of when the API calls were introduced to the docs. The goal is just to make it easier for consumers of the APIs to support both ConsoleKit2 and logind. The Stop/Restart API calls from ConsoleKit1 are still present and function almost exactly the same (only change is they respect inhibitors now). This patch fixes: https://github.com/ConsoleKit2/ConsoleKit2/issues/10
2014-10-20Add HybridSleep support and change CanSleepEric Koegel1-9/+12
Emulate the logind API to make it more easier for porting to ConsoleKit2 for the CanSuspend/CanHibernate/CanHybridSleep methods. They now return: yes - system can and user explicitly authorized by polkit, rbac, or neither is running no - system can and user explicitly unauthorized by polkit or rbac challenge - system can and user requires elevation via polkit na - system does not support it (hardware or backend support missing). The auth methods have been removed. Currently HybridSleep only works on Linux.
2014-10-13More Suspend DBUS API workEric Koegel1-0/+10
We need a Can/Auth split for suspend/hibernate because the user may be authorized but the system is unable to perform those actions. Additionally start working the inhibit calls. We also need to actually add the suspend/hibernate tools.
2014-10-09Start adding the Suspend/Hibernate DBUS APIEric Koegel1-0/+10
The initial work in progress to add in suspend/hibernate and the inhibit locks.
2009-07-20Port to PolicyKit 1.0 apisMatthias Clasen1-0/+5
2008-01-23add GetSessions method to Manager interfaceWilliam Jon McCann1-0/+3
2008-01-23add error type to managerWilliam Jon McCann1-1/+5
2008-01-22initial stop/restart supportWilliam Jon McCann1-1/+9
Add Stop and Restart methods to the Manager object. We'll rename the Manager object to System in the near future. Use libpolkit to determine authorization.
2007-03-13deprecate the user properties and add unix-user propertiesWilliam Jon McCann1-0/+4
Also added deprecated notes to the docs. New code should be using GetUnixUser instead of GetUser etc.
2007-02-20add a system-idle-hint and system-idle-since-hintWilliam Jon McCann1-4/+16
The system idle hint is TRUE when there are no busy (ie non-idle) sessions. So the system is idle when there are no sessions or all sessions are idle.
2006-10-25Initial importWilliam Jon McCann1-0/+97