diff options
author | Richard Hughes <richard@hughsie.com> | 2013-02-12 11:00:21 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2013-02-12 11:08:35 +0000 |
commit | 372c2f8d2922add987683a24b5d69902e05e2f97 (patch) | |
tree | e96cfcf7144e9226daa6eb259fb9a072d56ad1b3 /src/up-backend.h | |
parent | 9843589d2d80e6dc2b3f51338e64bd1da1c53860 (diff) | |
download | upower-372c2f8d2922add987683a24b5d69902e05e2f97.tar.gz |
Add a --enable-deprecated configure argument
This is turned off by default. If this is not set, then any calls to Suspend(),
SuspendAllowed(), Hibernate() or HibernateAllowed() will fail with an error.
The error mesage tells the user what new method to port to in logind.
I'm expecting to set --enable-deprecated for Fedora 17 and 18, but turn it off
for Fedora 19, so other distributions probably want to follow suit to find out
what other stuff needs to be ported to the new APIs early. GNOME should already
be fine, but KDE will need some solid porting as I understand it.
See http://lists.freedesktop.org/archives/devkit-devel/2013-January/001339.html
for more information on future plans and for rationale.
Diffstat (limited to 'src/up-backend.h')
-rw-r--r-- | src/up-backend.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/up-backend.h b/src/up-backend.h index 08dac8b..2554453 100644 --- a/src/up-backend.h +++ b/src/up-backend.h @@ -59,7 +59,9 @@ typedef struct void (* device_removed) (UpBackend *backend, GObject *native, UpDevice *device); +#ifdef ENABLE_DEPRECATED void (* resuming) (UpBackend *backend); +#endif } UpBackendClass; GType up_backend_get_type (void); @@ -68,15 +70,19 @@ void up_backend_test (gpointer user_data); gboolean up_backend_coldplug (UpBackend *backend, UpDaemon *daemon); +#ifdef ENABLE_DEPRECATED gboolean up_backend_kernel_can_suspend (UpBackend *backend); gboolean up_backend_kernel_can_hibernate (UpBackend *backend); gboolean up_backend_has_encrypted_swap (UpBackend *backend); gfloat up_backend_get_used_swap (UpBackend *backend); const gchar *up_backend_get_suspend_command (UpBackend *backend); const gchar *up_backend_get_hibernate_command (UpBackend *backend); +#endif const gchar *up_backend_get_powersave_command (UpBackend *backend, gboolean powersave); +#ifdef ENABLE_DEPRECATED gboolean up_backend_emits_resuming (UpBackend *backend); +#endif G_END_DECLS |