mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 06:40:04 +01:00
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:
parent
0f6cc0a10b
commit
4e962fdc8d
2 changed files with 4 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue