diff options
author | Peter Wu <lekensteyn@gmail.com> | 2013-08-19 11:35:33 +0200 |
---|---|---|
committer | Peter Wu <lekensteyn@gmail.com> | 2013-08-22 22:59:27 +0200 |
commit | 2ebf21aeec3cb42a15e97f86c5eee556f7c6e6fc (patch) | |
tree | 79b0656ccb4f3d97ca9510db3a1d7fba621dfd34 /src/linux/hidpp-device.h | |
parent | 0bbb57facf9ff5dc583534978e02126ca43aecce (diff) | |
download | upower-2ebf21aeec3cb42a15e97f86c5eee556f7c6e6fc.tar.gz |
hidpp: fix properties for unreachable devices (v2)
This includes "is-present" and "state" (which will be marked "unknown").
"percentage" is not touched since it is still an indication of the
battery level, changing it to zero is not helpful.
Previously, properties were never updated because the refresh would
fail when the battery refresh request failed.
- v2: fix invalid return value when an invalid parameter is passed to
hidpp_device_is_reachable.
Signed-off-by: Peter Wu <lekensteyn@gmail.com>
Diffstat (limited to 'src/linux/hidpp-device.h')
-rw-r--r-- | src/linux/hidpp-device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/linux/hidpp-device.h b/src/linux/hidpp-device.h index 3f249a8..2934606 100644 --- a/src/linux/hidpp-device.h +++ b/src/linux/hidpp-device.h @@ -84,6 +84,7 @@ void hidpp_device_set_index (HidppDevice *device, guint device_idx); void hidpp_device_set_enable_debug (HidppDevice *device, gboolean enable_debug); +gboolean hidpp_device_is_reachable (HidppDevice *device); gboolean hidpp_device_refresh (HidppDevice *device, HidppRefreshFlags refresh_flags, GError **error); |