types/wlr_input_device: move init and finish function to private API

This commit is contained in:
Simon Zeni 2022-03-03 09:43:38 -05:00 committed by Kirill Primak
parent 1bb2631c5c
commit cfed039c9a
20 changed files with 43 additions and 22 deletions

View file

@ -5,7 +5,6 @@
#include <time.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_data_device.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/types/wlr_primary_selection.h>
#include <wlr/types/wlr_seat.h>
#include <wlr/util/log.h>

View file

@ -5,7 +5,6 @@
#include <wayland-server-core.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_data_device.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/util/log.h>
#include "types/wlr_data_device.h"
#include "types/wlr_seat.h"

View file

@ -5,7 +5,6 @@
#include <time.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/util/log.h>
#include "types/wlr_seat.h"
#include "util/signal.h"

View file

@ -5,7 +5,6 @@
#include <time.h>
#include <wayland-server-core.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/util/log.h>
#include "types/wlr_seat.h"
#include "util/signal.h"

View file

@ -2,7 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <wlr/types/wlr_input_device.h>
#include "interfaces/wlr_input_device.h"
#include "util/signal.h"
void wlr_input_device_init(struct wlr_input_device *dev,

View file

@ -5,8 +5,8 @@
#include <unistd.h>
#include <wayland-server-core.h>
#include <wlr/interfaces/wlr_keyboard.h>
#include <wlr/types/wlr_keyboard.h>
#include <wlr/util/log.h>
#include "interfaces/wlr_input_device.h"
#include "types/wlr_keyboard.h"
#include "util/array.h"
#include "util/shm.h"

View file

@ -4,6 +4,8 @@
#include <wlr/interfaces/wlr_pointer.h>
#include <wlr/types/wlr_pointer.h>
#include "interfaces/wlr_input_device.h"
void wlr_pointer_init(struct wlr_pointer *pointer,
const struct wlr_pointer_impl *impl, const char *name) {
wlr_input_device_init(&pointer->base, WLR_INPUT_DEVICE_POINTER, name);

View file

@ -4,6 +4,8 @@
#include <wlr/interfaces/wlr_switch.h>
#include <wlr/types/wlr_switch.h>
#include "interfaces/wlr_input_device.h"
void wlr_switch_init(struct wlr_switch *switch_device,
const struct wlr_switch_impl *impl, const char *name) {
wlr_input_device_init(&switch_device->base, WLR_INPUT_DEVICE_SWITCH, name);

View file

@ -5,6 +5,8 @@
#include <wlr/types/wlr_tablet_pad.h>
#include <wlr/util/log.h>
#include "interfaces/wlr_input_device.h"
void wlr_tablet_pad_init(struct wlr_tablet_pad *pad,
const struct wlr_tablet_pad_impl *impl, const char *name) {
wlr_input_device_init(&pad->base, WLR_INPUT_DEVICE_TABLET_PAD, name);

View file

@ -4,6 +4,8 @@
#include <wlr/interfaces/wlr_tablet_tool.h>
#include <wlr/types/wlr_tablet_tool.h>
#include "interfaces/wlr_input_device.h"
void wlr_tablet_init(struct wlr_tablet *tablet,
const struct wlr_tablet_impl *impl, const char *name) {
wlr_input_device_init(&tablet->base, WLR_INPUT_DEVICE_TABLET_TOOL, name);

View file

@ -4,6 +4,8 @@
#include <wlr/interfaces/wlr_touch.h>
#include <wlr/types/wlr_touch.h>
#include "interfaces/wlr_input_device.h"
void wlr_touch_init(struct wlr_touch *touch,
const struct wlr_touch_impl *impl, const char *name) {
wlr_input_device_init(&touch->base, WLR_INPUT_DEVICE_TOUCH, name);