libweston: Migrate functions that operate on 'weston_seat'

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
dev
Marius Vlad 5 years ago committed by Daniel Stone
parent 58cac08c22
commit 0bf3f5ac2c
  1. 30
      include/libweston/libweston.h
  2. 1
      libweston/libinput-seat.c
  3. 43
      libweston/libweston-internal.h
  4. 1
      tests/weston-test.c

@ -721,9 +721,6 @@ weston_touch_device_destroy(struct weston_touch_device *device);
bool bool
weston_touch_device_can_calibrate(struct weston_touch_device *device); weston_touch_device_can_calibrate(struct weston_touch_device *device);
void
wl_data_device_set_keyboard_focus(struct weston_seat *seat);
int int
wl_data_device_manager_init(struct wl_display *display); wl_data_device_manager_init(struct wl_display *display);
@ -731,8 +728,6 @@ wl_data_device_manager_init(struct wl_display *display);
void void
weston_seat_set_selection(struct weston_seat *seat, weston_seat_set_selection(struct weston_seat *seat,
struct weston_data_source *source, uint32_t serial); struct weston_data_source *source, uint32_t serial);
void
weston_seat_send_selection(struct weston_seat *seat, struct wl_client *client);
int int
weston_pointer_start_drag(struct weston_pointer *pointer, weston_pointer_start_drag(struct weston_pointer *pointer,
@ -2023,28 +2018,6 @@ weston_output_transform_coordinate(struct weston_output *output,
double device_x, double device_y, double device_x, double device_y,
double *x, double *y); double *x, double *y);
void
weston_seat_init(struct weston_seat *seat, struct weston_compositor *ec,
const char *seat_name);
void
weston_seat_init_pointer(struct weston_seat *seat);
void
weston_seat_release_pointer(struct weston_seat *seat);
int
weston_seat_init_keyboard(struct weston_seat *seat, struct xkb_keymap *keymap);
void
weston_seat_release_keyboard(struct weston_seat *seat);
void
weston_seat_init_touch(struct weston_seat *seat);
void
weston_seat_release_touch(struct weston_seat *seat);
void
weston_seat_repick(struct weston_seat *seat);
void
weston_seat_update_keymap(struct weston_seat *seat, struct xkb_keymap *keymap);
void
weston_seat_release(struct weston_seat *seat);
int int
weston_compositor_set_xkb_rule_names(struct weston_compositor *ec, weston_compositor_set_xkb_rule_names(struct weston_compositor *ec,
struct xkb_rule_names *names); struct xkb_rule_names *names);
@ -2082,9 +2055,6 @@ weston_recorder_start(struct weston_output *output, const char *filename);
void void
weston_recorder_stop(struct weston_recorder *recorder); weston_recorder_stop(struct weston_recorder *recorder);
struct clipboard *
clipboard_create(struct weston_seat *seat);
struct weston_view_animation; struct weston_view_animation;
typedef void (*weston_view_animation_done_func_t)(struct weston_view_animation *animation, void *data); typedef void (*weston_view_animation_done_func_t)(struct weston_view_animation *animation, void *data);

@ -35,6 +35,7 @@
#include <libudev.h> #include <libudev.h>
#include <libweston/libweston.h> #include <libweston/libweston.h>
#include "libweston-internal.h"
#include "launcher-util.h" #include "launcher-util.h"
#include "libinput-seat.h" #include "libinput-seat.h"
#include "libinput-device.h" #include "libinput-device.h"

@ -164,4 +164,47 @@ weston_plane_init(struct weston_plane *plane,
int32_t x, int32_t y); int32_t x, int32_t y);
void void
weston_plane_release(struct weston_plane *plane); weston_plane_release(struct weston_plane *plane);
/* weston_seat */
struct clipboard *
clipboard_create(struct weston_seat *seat);
void
weston_seat_init(struct weston_seat *seat, struct weston_compositor *ec,
const char *seat_name);
void
weston_seat_repick(struct weston_seat *seat);
void
weston_seat_release(struct weston_seat *seat);
void
weston_seat_send_selection(struct weston_seat *seat, struct wl_client *client);
void
weston_seat_init_pointer(struct weston_seat *seat);
int
weston_seat_init_keyboard(struct weston_seat *seat, struct xkb_keymap *keymap);
void
weston_seat_init_touch(struct weston_seat *seat);
void
weston_seat_release_keyboard(struct weston_seat *seat);
void
weston_seat_release_pointer(struct weston_seat *seat);
void
weston_seat_release_touch(struct weston_seat *seat);
void
weston_seat_update_keymap(struct weston_seat *seat, struct xkb_keymap *keymap);
void
wl_data_device_set_keyboard_focus(struct weston_seat *seat);
#endif #endif

@ -34,6 +34,7 @@
#include <errno.h> #include <errno.h>
#include <libweston/libweston.h> #include <libweston/libweston.h>
#include "libweston-internal.h"
#include "compositor/weston.h" #include "compositor/weston.h"
#include "weston-test-server-protocol.h" #include "weston-test-server-protocol.h"

Loading…
Cancel
Save