XfceConsolekit

XfceConsolekit — Session management via ConsoleKit

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── XfceConsolekit

Includes

#include <libxfce4util/libxfce4util.h>

Description

Functions

xfce_consolekit_get ()

XfceConsolekit *
xfce_consolekit_get (void);

Create a new XfceConsolekit instance or increase reference count.

Returns

A reference to the singleton object, to be released with g_object_unref().

[transfer full]

Since: 4.19.1


xfce_consolekit_try_restart ()

gboolean
xfce_consolekit_try_restart (XfceConsolekit *consolekit,
                             GError **error);

Ask ConsoleKit to trigger restart.

Parameters

consolekit

the XfceConsolekit object

 

error

location to store error on failure or NULL.

[out][nullable]

Returns

TRUE if the D-Bus request was successful, FALSE otherwise and error is set.

Since: 4.19.1


xfce_consolekit_try_shutdown ()

gboolean
xfce_consolekit_try_shutdown (XfceConsolekit *consolekit,
                              GError **error);

Ask ConsoleKit to trigger shutdown.

Parameters

consolekit

the XfceConsolekit object

 

error

location to store error on failure or NULL.

[out][nullable]

Returns

TRUE if the D-Bus request was successful, FALSE otherwise and error is set.

Since: 4.19.1


xfce_consolekit_try_suspend ()

gboolean
xfce_consolekit_try_suspend (XfceConsolekit *consolekit,
                             GError **error);

Ask ConsoleKit to trigger suspend.

Parameters

consolekit

the XfceConsolekit object

 

error

location to store error on failure or NULL.

[out][nullable]

Returns

TRUE if the D-Bus request was successful, FALSE otherwise and error is set.

Since: 4.19.1


xfce_consolekit_try_hibernate ()

gboolean
xfce_consolekit_try_hibernate (XfceConsolekit *consolekit,
                               GError **error);

Ask ConsoleKit to trigger hibernate.

Parameters

consolekit

the XfceConsolekit object

 

error

location to store error on failure or NULL.

[out][nullable]

Returns

TRUE if the D-Bus request was successful, FALSE otherwise and error is set.

Since: 4.19.1


xfce_consolekit_try_hybrid_sleep ()

gboolean
xfce_consolekit_try_hybrid_sleep (XfceConsolekit *consolekit,
                                  GError **error);

Ask ConsoleKit to trigger hybrid sleep.

Parameters

consolekit

the XfceConsolekit object

 

error

location to store error on failure or NULL.

[out][nullable]

Returns

TRUE if the D-Bus request was successful, FALSE otherwise and error is set.

Since: 4.19.1


xfce_consolekit_can_restart ()

gboolean
xfce_consolekit_can_restart (XfceConsolekit *consolekit,
                             gboolean *can_restart,
                             GError **error);

Check whether ConsoleKit can trigger restart.

Parameters

consolekit

the XfceConsolekit object

 

can_restart

location to store capacity or NULL.

[out][nullable]

error

location to store error on failure or NULL.

[out][nullable]

Returns

TRUE if the D-Bus request was successful, FALSE otherwise and error is set.

Since: 4.19.1


xfce_consolekit_can_shutdown ()

gboolean
xfce_consolekit_can_shutdown (XfceConsolekit *consolekit,
                              gboolean *can_shutdown,
                              GError **error);

Check whether ConsoleKit can trigger shutdown.

Parameters

consolekit

the XfceConsolekit object

 

can_shutdown

location to store capacity or NULL.

[out][nullable]

error

location to store error on failure or NULL.

[out][nullable]

Returns

TRUE if the D-Bus request was successful, FALSE otherwise and error is set.

Since: 4.19.1


xfce_consolekit_can_suspend ()

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.

Parameters

consolekit

the XfceConsolekit object

 

can_suspend

location to store capacity or NULL.

[out][nullable]

auth_suspend

location to store authorization or NULL.

[out][nullable]

error

location to store error on failure or NULL.

[out][nullable]

Returns

TRUE if the D-Bus request was successful, FALSE otherwise and error is set.

Since: 4.19.1


xfce_consolekit_can_hibernate ()

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.

Parameters

consolekit

the XfceConsolekit object

 

can_hibernate

location to store capacity or NULL.

[out][nullable]

auth_hibernate

location to store authorization or NULL.

[out][nullable]

error

location to store error on failure or NULL.

[out][nullable]

Returns

TRUE if the D-Bus request was successful, FALSE otherwise and error is set.

Since: 4.19.1


xfce_consolekit_can_hybrid_sleep ()

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.

Parameters

consolekit

the XfceConsolekit object

 

can_hybrid_sleep

location to store capacity or NULL.

[out][nullable]

auth_hybrid_sleep

location to store authorization or NULL.

[out][nullable]

error

location to store error on failure or NULL.

[out][nullable]

Returns

TRUE if the D-Bus request was successful, FALSE otherwise and error is set.

Since: 4.19.1

Types and Values

XfceConsolekit

typedef struct _XfceConsolekit XfceConsolekit;