Top | ![]() |
![]() |
![]() |
![]() |
XfceConsolekit *
xfce_consolekit_get (void
);
Create a new XfceConsolekit instance or increase reference count.
Since: 4.19.1
gboolean xfce_consolekit_try_restart (XfceConsolekit *consolekit
,GError **error
);
Ask ConsoleKit to trigger restart.
consolekit |
the XfceConsolekit object |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_try_shutdown (XfceConsolekit *consolekit
,GError **error
);
Ask ConsoleKit to trigger shutdown.
consolekit |
the XfceConsolekit object |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_try_suspend (XfceConsolekit *consolekit
,GError **error
);
Ask ConsoleKit to trigger suspend.
consolekit |
the XfceConsolekit object |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_try_hibernate (XfceConsolekit *consolekit
,GError **error
);
Ask ConsoleKit to trigger hibernate.
consolekit |
the XfceConsolekit object |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_try_hybrid_sleep (XfceConsolekit *consolekit
,GError **error
);
Ask ConsoleKit to trigger hybrid sleep.
consolekit |
the XfceConsolekit object |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_can_restart (XfceConsolekit *consolekit
,gboolean *can_restart
,GError **error
);
Check whether ConsoleKit can trigger restart.
consolekit |
the XfceConsolekit object |
|
can_restart |
location to store capacity or |
[out][nullable] |
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_can_shutdown (XfceConsolekit *consolekit
,gboolean *can_shutdown
,GError **error
);
Check whether ConsoleKit can trigger shutdown.
consolekit |
the XfceConsolekit object |
|
can_shutdown |
location to store capacity or |
[out][nullable] |
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_can_suspend (XfceConsolekit *consolekit
,gboolean *can_suspend
,gboolean *auth_suspend
,GError **error
);
Check whether ConsoleKit can trigger and has authorization for suspend.
consolekit |
the XfceConsolekit object |
|
can_suspend |
location to store capacity or |
[out][nullable] |
auth_suspend |
location to store authorization or |
[out][nullable] |
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_can_hibernate (XfceConsolekit *consolekit
,gboolean *can_hibernate
,gboolean *auth_hibernate
,GError **error
);
Check whether ConsoleKit can trigger and has authorization for hibernate.
consolekit |
the XfceConsolekit object |
|
can_hibernate |
location to store capacity or |
[out][nullable] |
auth_hibernate |
location to store authorization or |
[out][nullable] |
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_consolekit_can_hybrid_sleep (XfceConsolekit *consolekit
,gboolean *can_hybrid_sleep
,gboolean *auth_hybrid_sleep
,GError **error
);
Check whether ConsoleKit can trigger and has authorization for hybrid sleep.
consolekit |
the XfceConsolekit object |
|
can_hybrid_sleep |
location to store capacity or |
[out][nullable] |
auth_hybrid_sleep |
location to store authorization or |
[out][nullable] |
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1