| Top |
XfceSystemd *
xfce_systemd_get (void);
Create a new XfceSystemd instance or increase reference count.
Since: 4.19.1
gboolean xfce_systemd_try_restart (XfceSystemd *systemd,GError **error);
Ask systemd to trigger restart.
systemd |
the XfceSystemd object |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_systemd_try_shutdown (XfceSystemd *systemd,GError **error);
Ask systemd to trigger shutdown.
systemd |
the XfceSystemd object |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_systemd_try_suspend (XfceSystemd *systemd,GError **error);
Ask systemd to trigger suspend.
systemd |
the XfceSystemd object |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_systemd_try_hibernate (XfceSystemd *systemd,GError **error);
Ask systemd to trigger hibernate.
systemd |
the XfceSystemd object |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_systemd_try_hybrid_sleep (XfceSystemd *systemd,GError **error);
Ask systemd to trigger hybrid sleep.
systemd |
the XfceSystemd object |
|
error |
location to store error on failure or |
[out][nullable] |
Since: 4.19.1
gboolean xfce_systemd_can_restart (XfceSystemd *systemd,gboolean *can_restart,GError **error);
Check whether systemd can trigger restart.
systemd |
the XfceSystemd 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_systemd_can_shutdown (XfceSystemd *systemd,gboolean *can_shutdown,GError **error);
Check whether systemd can trigger shutdown.
systemd |
the XfceSystemd 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_systemd_can_suspend (XfceSystemd *systemd,gboolean *can_suspend,gboolean *auth_suspend,GError **error);
Check whether systemd can trigger and has authorization for suspend.
systemd |
the XfceSystemd 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_systemd_can_hibernate (XfceSystemd *systemd,gboolean *can_hibernate,gboolean *auth_hibernate,GError **error);
Check whether systemd can trigger and has authorization for hibernate.
systemd |
the XfceSystemd 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_systemd_can_hybrid_sleep (XfceSystemd *systemd,gboolean *can_hybrid_sleep,gboolean *auth_hybrid_sleep,GError **error);
Check whether systemd can trigger and has authorization for hybrid sleep.
systemd |
the XfceSystemd 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