summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-07-15 11:13:06 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-07-18 08:09:00 +1000
commitd9c253572184bed441c4ad0c55001292c8e033c4 (patch)
treebc6c14f2a671b0b69ea04fd8f8415d6e97b8025e /src
parent8e7f99c27ab39df0ef6a79443266b00ad43d824f (diff)
evdev: constify evdev_device_get_size
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/evdev.c2
-rw-r--r--src/evdev.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 6d231db6..1a0759b3 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -2671,7 +2671,7 @@ evdev_device_has_capability(struct evdev_device *device,
}
int
-evdev_device_get_size(struct evdev_device *device,
+evdev_device_get_size(const struct evdev_device *device,
double *width,
double *height)
{
diff --git a/src/evdev.h b/src/evdev.h
index a3e76c5f..f9c0dd19 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -371,7 +371,7 @@ evdev_device_has_capability(struct evdev_device *device,
enum libinput_device_capability capability);
int
-evdev_device_get_size(struct evdev_device *device,
+evdev_device_get_size(const struct evdev_device *device,
double *w,
double *h);