lib: Mark lid related functions and properties as deprecated

As we want to eventually remove them.

See https://gitlab.freedesktop.org/upower/upower/-/merge_requests/5
This commit is contained in:
Bastien Nocera 2021-08-19 18:51:30 +02:00
parent 0f6cc0a10b
commit 4e962fdc8d
2 changed files with 4 additions and 2 deletions

View file

@ -404,7 +404,7 @@ up_client_class_init (UpClientClass *klass)
"If the laptop lid is closed",
NULL,
FALSE,
G_PARAM_READABLE));
G_PARAM_READABLE | G_PARAM_DEPRECATED));
/**
* UpClient:lid-is-present:
*
@ -418,7 +418,7 @@ up_client_class_init (UpClientClass *klass)
"If a laptop lid is present",
NULL,
FALSE,
G_PARAM_READABLE));
G_PARAM_READABLE | G_PARAM_DEPRECATED));
/**
* UpClient::device-added:

View file

@ -82,7 +82,9 @@ char * up_client_get_critical_action (UpClient *client);
GPtrArray *up_client_get_devices (UpClient *client) G_DEPRECATED_FOR(up_client_get_devices2);
GPtrArray *up_client_get_devices2 (UpClient *client);
const gchar *up_client_get_daemon_version (UpClient *client);
G_DEPRECATED
gboolean up_client_get_lid_is_closed (UpClient *client);
G_DEPRECATED
gboolean up_client_get_lid_is_present (UpClient *client);
gboolean up_client_get_on_battery (UpClient *client);