Hide pad auxiliary data in .c file

This commit is contained in:
Markus Ongyerth 2018-05-17 13:46:45 +02:00
parent fa39fd178d
commit 88a4b908d1
2 changed files with 5 additions and 6 deletions

View File

@ -78,12 +78,6 @@ struct wlr_tablet_tool_client_v2 {
struct wl_event_source *frame_source; struct wl_event_source *frame_source;
}; };
struct tablet_pad_auxiliary_user_data {
struct wlr_tablet_pad_client_v2 *pad;
size_t index;
};
struct wlr_tablet_client_v2 *tablet_client_from_resource(struct wl_resource *resource); struct wlr_tablet_client_v2 *tablet_client_from_resource(struct wl_resource *resource);
void destroy_tablet_v2(struct wl_resource *resource); void destroy_tablet_v2(struct wl_resource *resource);
void add_tablet_client(struct wlr_tablet_seat_client_v2 *seat, struct wlr_tablet_v2_tablet *tablet); void add_tablet_client(struct wlr_tablet_seat_client_v2 *seat, struct wlr_tablet_v2_tablet *tablet);

View File

@ -11,6 +11,11 @@
#include <wlr/types/wlr_tablet_v2.h> #include <wlr/types/wlr_tablet_v2.h>
#include <wlr/util/log.h> #include <wlr/util/log.h>
struct tablet_pad_auxiliary_user_data {
struct wlr_tablet_pad_client_v2 *pad;
size_t index;
};
void destroy_tablet_pad_v2(struct wl_resource *resource) { void destroy_tablet_pad_v2(struct wl_resource *resource) {
struct wlr_tablet_pad_client_v2 *pad = struct wlr_tablet_pad_client_v2 *pad =
tablet_pad_client_from_resource(resource); tablet_pad_client_from_resource(resource);