mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Remove wlr_ prefix from local symbols
This commit is contained in:
parent
097561d6bf
commit
b0d99f5c67
26 changed files with 163 additions and 199 deletions
|
|
@ -32,7 +32,7 @@ static int wlr_libinput_readable(int fd, uint32_t mask, void *_backend) {
|
|||
}
|
||||
struct libinput_event *event;
|
||||
while ((event = libinput_get_event(backend->libinput_context))) {
|
||||
wlr_libinput_event(backend, event);
|
||||
libinput_handle_event(backend, event);
|
||||
libinput_event_destroy(event);
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ static void handle_device_added(struct wlr_libinput_backend *backend,
|
|||
if (!wlr_dev) {
|
||||
goto fail;
|
||||
}
|
||||
wlr_dev->keyboard = wlr_libinput_keyboard_create(libinput_dev);
|
||||
wlr_dev->keyboard = libinput_keyboard_create(libinput_dev);
|
||||
if (!wlr_dev->keyboard) {
|
||||
free(wlr_dev);
|
||||
goto fail;
|
||||
|
|
@ -99,7 +99,7 @@ static void handle_device_added(struct wlr_libinput_backend *backend,
|
|||
if (!wlr_dev) {
|
||||
goto fail;
|
||||
}
|
||||
wlr_dev->pointer = wlr_libinput_pointer_create(libinput_dev);
|
||||
wlr_dev->pointer = libinput_pointer_create(libinput_dev);
|
||||
if (!wlr_dev->pointer) {
|
||||
free(wlr_dev);
|
||||
goto fail;
|
||||
|
|
@ -112,7 +112,7 @@ static void handle_device_added(struct wlr_libinput_backend *backend,
|
|||
if (!wlr_dev) {
|
||||
goto fail;
|
||||
}
|
||||
wlr_dev->touch = wlr_libinput_touch_create(libinput_dev);
|
||||
wlr_dev->touch = libinput_touch_create(libinput_dev);
|
||||
if (!wlr_dev->touch) {
|
||||
free(wlr_dev);
|
||||
goto fail;
|
||||
|
|
@ -125,7 +125,7 @@ static void handle_device_added(struct wlr_libinput_backend *backend,
|
|||
if (!wlr_dev) {
|
||||
goto fail;
|
||||
}
|
||||
wlr_dev->tablet_tool = wlr_libinput_tablet_tool_create(libinput_dev);
|
||||
wlr_dev->tablet_tool = libinput_tablet_tool_create(libinput_dev);
|
||||
if (!wlr_dev->tablet_tool) {
|
||||
free(wlr_dev);
|
||||
goto fail;
|
||||
|
|
@ -138,7 +138,7 @@ static void handle_device_added(struct wlr_libinput_backend *backend,
|
|||
if (!wlr_dev) {
|
||||
goto fail;
|
||||
}
|
||||
wlr_dev->tablet_pad = wlr_libinput_tablet_pad_create(libinput_dev);
|
||||
wlr_dev->tablet_pad = libinput_tablet_pad_create(libinput_dev);
|
||||
if (!wlr_dev->tablet_pad) {
|
||||
free(wlr_dev);
|
||||
goto fail;
|
||||
|
|
@ -192,7 +192,7 @@ static void handle_device_removed(struct wlr_libinput_backend *backend,
|
|||
free(wlr_devices);
|
||||
}
|
||||
|
||||
void wlr_libinput_event(struct wlr_libinput_backend *backend,
|
||||
void libinput_handle_event(struct wlr_libinput_backend *backend,
|
||||
struct libinput_event *event) {
|
||||
assert(backend && event);
|
||||
struct libinput_device *libinput_dev = libinput_event_get_device(event);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ struct wlr_keyboard_impl impl = {
|
|||
.led_update = wlr_libinput_keyboard_set_leds
|
||||
};
|
||||
|
||||
struct wlr_keyboard *wlr_libinput_keyboard_create(
|
||||
struct wlr_keyboard *libinput_keyboard_create(
|
||||
struct libinput_device *libinput_dev) {
|
||||
assert(libinput_dev);
|
||||
struct wlr_libinput_keyboard *wlr_libinput_kb;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#include "backend/libinput.h"
|
||||
#include "util/signal.h"
|
||||
|
||||
struct wlr_pointer *wlr_libinput_pointer_create(
|
||||
struct wlr_pointer *libinput_pointer_create(
|
||||
struct libinput_device *libinput_dev) {
|
||||
assert(libinput_dev);
|
||||
struct wlr_pointer *wlr_pointer = calloc(1, sizeof(struct wlr_pointer));
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#include "backend/libinput.h"
|
||||
#include "util/signal.h"
|
||||
|
||||
struct wlr_tablet_pad *wlr_libinput_tablet_pad_create(
|
||||
struct wlr_tablet_pad *libinput_tablet_pad_create(
|
||||
struct libinput_device *libinput_dev) {
|
||||
assert(libinput_dev);
|
||||
struct wlr_tablet_pad *wlr_tablet_pad = calloc(1, sizeof(struct wlr_tablet_pad));
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#include "backend/libinput.h"
|
||||
#include "util/signal.h"
|
||||
|
||||
struct wlr_tablet_tool *wlr_libinput_tablet_tool_create(
|
||||
struct wlr_tablet_tool *libinput_tablet_tool_create(
|
||||
struct libinput_device *libinput_dev) {
|
||||
assert(libinput_dev);
|
||||
struct wlr_tablet_tool *wlr_tablet_tool = calloc(1, sizeof(struct wlr_tablet_tool));
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#include "backend/libinput.h"
|
||||
#include "util/signal.h"
|
||||
|
||||
struct wlr_touch *wlr_libinput_touch_create(
|
||||
struct wlr_touch *libinput_touch_create(
|
||||
struct libinput_device *libinput_dev) {
|
||||
assert(libinput_dev);
|
||||
struct wlr_touch *wlr_touch = calloc(1, sizeof(struct wlr_touch));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue