diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-07-09 16:00:45 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-07-11 16:04:59 +1000 |
commit | 1cc9f44e93ca1c3e25a6f937f36d99c3f9c8a209 (patch) | |
tree | af8ea00d17f34e3bc055e33d1a7aee1d52ce8d1f /src/quirks.h | |
parent | 0021f9e7a8b0cd086f6d564ff13dff7fcd644790 (diff) | |
download | libinput-1cc9f44e93ca1c3e25a6f937f36d99c3f9c8a209.tar.gz |
quirks: add quirks_get_double()
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/quirks.h')
-rw-r--r-- | src/quirks.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/quirks.h b/src/quirks.h index 36e1e14b..df8b7dd3 100644 --- a/src/quirks.h +++ b/src/quirks.h @@ -217,6 +217,19 @@ quirks_get_int32(struct quirks *q, int32_t *val); /** + * Get the value of the given quirk, as double. + * This function will assert if the quirk type does not match the + * requested type. If the quirk is not set for this device, val is + * unchanged. + * + * @return true if the quirk value is valid, false otherwise. + */ +bool +quirks_get_double(struct quirks *q, + enum quirk which, + double *val); + +/** * Get the value of the given quirk, as string. * This function will assert if the quirk type does not match the * requested type. If the quirk is not set for this device, val is |