summaryrefslogtreecommitdiff
path: root/src/linux/hidpp-device.h
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-08-19 11:35:33 +0200
committerPeter Wu <lekensteyn@gmail.com>2013-08-22 22:59:27 +0200
commit2ebf21aeec3cb42a15e97f86c5eee556f7c6e6fc (patch)
tree79b0656ccb4f3d97ca9510db3a1d7fba621dfd34 /src/linux/hidpp-device.h
parent0bbb57facf9ff5dc583534978e02126ca43aecce (diff)
downloadupower-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.h1
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);