diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2022-02-10 12:38:41 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2022-02-10 13:48:47 +1000 |
commit | 2c9e352c3529a58a12035f0d3ad0a36bbd707188 (patch) | |
tree | 7bd6e861f37f7a41157ac586d381fc087c205e20 | |
parent | f28c881a8a752d7c75164f53ba8c471df5cd08a3 (diff) | |
download | xf86-input-wacom-2c9e352c3529a58a12035f0d3ad0a36bbd707188.tar.gz |
gwacom: add function to get the device options from the device
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/gwacom/wacom-device.c | 5 | ||||
-rw-r--r-- | src/gwacom/wacom-device.h | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/gwacom/wacom-device.c b/src/gwacom/wacom-device.c index 78be3fa..29315a5 100644 --- a/src/gwacom/wacom-device.c +++ b/src/gwacom/wacom-device.c @@ -291,6 +291,11 @@ void *wacom_device_get_impl(WacomDevice *device) return device->priv; } +WacomOptions *wacom_device_get_options(WacomDevice *device) +{ + return device->options; +} + /****************** Driver layer *****************/ int diff --git a/src/gwacom/wacom-device.h b/src/gwacom/wacom-device.h index a40b263..3ada1dd 100644 --- a/src/gwacom/wacom-device.h +++ b/src/gwacom/wacom-device.h @@ -190,6 +190,13 @@ guint wacom_device_get_id(WacomDevice *device); const char *wacom_device_get_name(WacomDevice *device); WacomToolType wacom_device_get_tool_type(WacomDevice *device); +/** + * wacom_device_get_options: + * + * Returns: (transfer none): the options applied to this device + */ +WacomOptions *wacom_device_get_options(WacomDevice *device); + /* The following getters are only available after wacom_device_setup() */ int wacom_device_get_num_buttons(WacomDevice *device); |