libweston: unexport weston_{pointer,keyboard,touch}_{create,destroy}()

We have weston_seat_{init,release}_{pointer,keyboard,touch}() as the
backend-facing API. There is no need to expose the create/destroy
functions which have been for internal use only for quite a long time.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
v1 Tested-by: Matt Hoosier <matt.hoosier@gmail.com>
dev
Pekka Paalanen 7 years ago
parent 925788fc76
commit 1b043b16b5
  1. 12
      libweston/compositor.h
  2. 12
      libweston/input.c

@ -483,10 +483,6 @@ weston_pointer_motion_to_abs(struct weston_pointer *pointer,
struct weston_pointer_motion_event *event,
wl_fixed_t *x, wl_fixed_t *y);
struct weston_pointer *
weston_pointer_create(struct weston_seat *seat);
void
weston_pointer_destroy(struct weston_pointer *pointer);
void
weston_pointer_send_motion(struct weston_pointer *pointer,
const struct timespec *time,
@ -531,10 +527,6 @@ weston_pointer_set_default_grab(struct weston_pointer *pointer,
void
weston_pointer_constraint_destroy(struct weston_pointer_constraint *constraint);
struct weston_keyboard *
weston_keyboard_create(void);
void
weston_keyboard_destroy(struct weston_keyboard *keyboard);
void
weston_keyboard_set_focus(struct weston_keyboard *keyboard,
struct weston_surface *surface);
@ -563,10 +555,6 @@ weston_keyboard_send_modifiers(struct weston_keyboard *keyboard,
uint32_t mods_latched,
uint32_t mods_locked, uint32_t group);
struct weston_touch *
weston_touch_create(void);
void
weston_touch_destroy(struct weston_touch *touch);
void
weston_touch_set_focus(struct weston_touch *touch,
struct weston_view *view);

@ -1136,7 +1136,7 @@ weston_pointer_reset_state(struct weston_pointer *pointer)
static void
weston_pointer_handle_output_destroy(struct wl_listener *listener, void *data);
WL_EXPORT struct weston_pointer *
static struct weston_pointer *
weston_pointer_create(struct weston_seat *seat)
{
struct weston_pointer *pointer;
@ -1175,7 +1175,7 @@ weston_pointer_create(struct weston_seat *seat)
return pointer;
}
WL_EXPORT void
static void
weston_pointer_destroy(struct weston_pointer *pointer)
{
struct weston_pointer_client *pointer_client, *tmp;
@ -1209,7 +1209,7 @@ weston_pointer_set_default_grab(struct weston_pointer *pointer,
&default_pointer_grab_interface;
}
WL_EXPORT struct weston_keyboard *
static struct weston_keyboard *
weston_keyboard_create(void)
{
struct weston_keyboard *keyboard;
@ -1235,7 +1235,7 @@ weston_keyboard_create(void)
static void
weston_xkb_info_destroy(struct weston_xkb_info *xkb_info);
WL_EXPORT void
static void
weston_keyboard_destroy(struct weston_keyboard *keyboard)
{
struct wl_resource *resource;
@ -1268,7 +1268,7 @@ weston_touch_reset_state(struct weston_touch *touch)
touch->num_tp = 0;
}
WL_EXPORT struct weston_touch *
static struct weston_touch *
weston_touch_create(void)
{
struct weston_touch *touch;
@ -1292,7 +1292,7 @@ weston_touch_create(void)
return touch;
}
WL_EXPORT void
static void
weston_touch_destroy(struct weston_touch *touch)
{
struct wl_resource *resource;

Loading…
Cancel
Save