diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2016-09-12 23:17:28 +0800 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2016-09-15 09:54:55 +0800 |
commit | a6646b32d0b078948bbb47e84037f09b5b6ff990 (patch) | |
tree | 793d9495716c6939dc76bbaa84f4b5fbf26a9221 /src/wayland/meta-wayland-input-device.h | |
parent | d2cdbd433d5a7218e1083b12e6914feecf242715 (diff) | |
download | mutter-a6646b32d0b078948bbb47e84037f09b5b6ff990.tar.gz |
wayland: Add common object for device classes
Add a new object class, MetaWaylandInputDevice, and make all device
classes (pointer, keyboard, touch) inherit it. In the future common
functionality may be placed there.
https://bugzilla.gnome.org/show_bug.cgi?id=771305
Diffstat (limited to 'src/wayland/meta-wayland-input-device.h')
-rw-r--r-- | src/wayland/meta-wayland-input-device.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/wayland/meta-wayland-input-device.h b/src/wayland/meta-wayland-input-device.h new file mode 100644 index 000000000..d76e91bd3 --- /dev/null +++ b/src/wayland/meta-wayland-input-device.h @@ -0,0 +1,41 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ + +/* + * Copyright (C) 2016 Red Hat + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + * + * Written by: + * Jonas Ådahl <jadahl@gmail.com> + */ + +#ifndef META_WAYLAND_INPUT_DEVICE_H +#define META_WAYLAND_INPUT_DEVICE_H + +#include <glib-object.h> + +#define META_TYPE_WAYLAND_INPUT_DEVICE (meta_wayland_input_device_get_type ()) +G_DECLARE_DERIVABLE_TYPE (MetaWaylandInputDevice, + meta_wayland_input_device, + META, WAYLAND_INPUT_DEVICE, + GObject) + +struct _MetaWaylandInputDeviceClass +{ + GObjectClass parent_class; +}; + +#endif /* META_WAYLAND_INPUT_DEVICE_H */ |