From 3ee9d8e2d2acae42baec77388bd7da7bf4cd877a Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Thu, 18 Jul 2019 11:01:51 +0300 Subject: [PATCH] libweston: Put back weston_compositor_add_debug_binding() as public The ability to install debug keybinds is useful so bring it back to the public libweston API. Signed-off-by: Marius Vlad --- include/libweston/libweston.h | 5 +++++ libweston/libweston-internal.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h index 2af7e32a..a6ae591b 100644 --- a/include/libweston/libweston.h +++ b/include/libweston/libweston.h @@ -1627,6 +1627,11 @@ weston_compositor_add_key_binding(struct weston_compositor *compositor, enum weston_keyboard_modifier modifier, weston_key_binding_handler_t binding, void *data); +struct weston_binding * +weston_compositor_add_debug_binding(struct weston_compositor *compositor, + uint32_t key, + weston_key_binding_handler_t binding, + void *data); typedef void (*weston_modifier_binding_handler_t)(struct weston_keyboard *keyboard, enum weston_keyboard_modifier modifier, diff --git a/libweston/libweston-internal.h b/libweston/libweston-internal.h index 69b3e2ec..8d40740c 100644 --- a/libweston/libweston-internal.h +++ b/libweston/libweston-internal.h @@ -79,11 +79,6 @@ weston_compositor_add_head(struct weston_compositor *compositor, void weston_compositor_add_pending_output(struct weston_output *output, struct weston_compositor *compositor); -struct weston_binding * -weston_compositor_add_debug_binding(struct weston_compositor *compositor, - uint32_t key, - weston_key_binding_handler_t binding, - void *data); bool weston_compositor_import_dmabuf(struct weston_compositor *compositor, struct linux_dmabuf_buffer *buffer);