From 9e4bafba8f26229c17544ec3a7be4f6c58062e5e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 15 Oct 2015 12:48:40 +1000 Subject: [PATCH] hidpp10: header file cleanups Signed-off-by: Peter Hutterer --- src/hidpp10.h | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/hidpp10.h b/src/hidpp10.h index dc096da4..46b63113 100644 --- a/src/hidpp10.h +++ b/src/hidpp10.h @@ -34,14 +34,24 @@ #include "hidpp-generic.h" -struct hidpp10_device; +/* FIXME: that's what my G500s supports, but only pages 3-5 are valid. + * 0 is zeroed, 1 and 2 are garbage, all above 6 is garbage */ +#define HIDPP10_NUM_PROFILES 3 -void hidpp10_device_destroy(struct hidpp10_device *dev); +struct hidpp10_device { + struct hidpp_device base; + unsigned index; + uint16_t wpid; +}; -struct hidpp10_device *hidpp10_device_new_from_wpid(const struct hidpp_device *base, - uint16_t wpid); -struct hidpp10_device *hidpp10_device_new_from_idx(const struct hidpp_device *base, - int idx); +struct hidpp10_device* +hidpp10_device_new_from_wpid(const struct hidpp_device *base, + uint16_t wpid); +struct hidpp10_device* +hidpp10_device_new_from_idx(const struct hidpp_device *base, + int idx); +void +hidpp10_device_destroy(struct hidpp10_device *dev); /* -------------------------------------------------------------------------- */ /* 0x00: Enable HID++ Notifications */ @@ -485,13 +495,4 @@ hidpp10_get_firmare_information(struct hidpp10_device *dev, uint8_t *minor, uint8_t *build_number); - -/* FIXME: that's what my G500s supports, but only pages 3-5 are valid. - * 0 is zeroed, 1 and 2 are garbage, all above 6 is garbage */ -#define HIDPP10_NUM_PROFILES 3 -struct hidpp10_device { - struct hidpp_device base; - unsigned index; - uint16_t wpid; -}; #endif /* HIDPP_10_H */