diff options
Diffstat (limited to 'libupower-glib/up-client.h')
-rw-r--r-- | libupower-glib/up-client.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libupower-glib/up-client.h b/libupower-glib/up-client.h index 482cd90..17ec7ba 100644 --- a/libupower-glib/up-client.h +++ b/libupower-glib/up-client.h @@ -60,8 +60,10 @@ typedef struct void (*device_removed) (UpClient *client, UpDevice *device); void (*changed) (UpClient *client); + /* FIXME: remove when we next break API */ void (*notify_sleep) (UpClient *client, UpSleepKind sleep_kind); + /* FIXME: remove when we next break API */ void (*notify_resume) (UpClient *client, UpSleepKind sleep_kind); /*< private >*/ @@ -87,6 +89,7 @@ gboolean up_client_get_properties_sync (UpClient *client, gboolean up_client_enumerate_devices_sync (UpClient *client, GCancellable *cancellable, GError **error); +#ifdef UPOWER_ENABLE_DEPRECATED gboolean up_client_suspend_sync (UpClient *client, GCancellable *cancellable, GError **error); @@ -97,16 +100,21 @@ gboolean up_client_about_to_sleep_sync (UpClient *client, gboolean up_client_hibernate_sync (UpClient *client, GCancellable *cancellable, GError **error); +#endif /* accessors */ GPtrArray *up_client_get_devices (UpClient *client); const gchar *up_client_get_daemon_version (UpClient *client); +#ifdef UPOWER_ENABLE_DEPRECATED gboolean up_client_get_can_hibernate (UpClient *client); +#endif gboolean up_client_get_lid_is_closed (UpClient *client); gboolean up_client_get_lid_is_present (UpClient *client); gboolean up_client_get_lid_force_sleep (UpClient *client); gboolean up_client_get_is_docked (UpClient *client); +#ifdef UPOWER_ENABLE_DEPRECATED gboolean up_client_get_can_suspend (UpClient *client); +#endif gboolean up_client_get_on_battery (UpClient *client); gboolean up_client_get_on_low_battery (UpClient *client); |