Improve inert resource handling

This commit is contained in:
Markus Ongyerth 2018-05-17 11:10:31 +02:00
parent b79d11395c
commit 2155c976f6
2 changed files with 83 additions and 51 deletions

View file

@ -0,0 +1,20 @@
#ifndef TYPES_WLR_TABLET_V2_H
#define TYPES_WLR_TABLET_V2_H
#include "tablet-unstable-v2-protocol.h"
#include <wayland-server.h>
#include <wlr/types/wlr_tablet_v2.h>
struct wlr_tablet_client_v2 *tablet_client_from_resource(struct wl_resource *resource);
void destroy_tablet_v2(struct wl_resource *resource);
void destroy_tablet_pad_v2(struct wl_resource *resource);
struct wlr_tablet_pad_client_v2 *tablet_pad_client_from_resource(struct wl_resource *resource);
void destroy_tablet_tool_v2(struct wl_resource *resource);
struct wlr_tablet_tool_client_v2 *tablet_tool_client_from_resource(struct wl_resource *resource);
struct wlr_tablet_seat_client_v2 *tablet_seat_client_from_resource(struct wl_resource *resource);
static void wlr_tablet_seat_client_v2_destroy(struct wl_resource *resource);
#endif /* TYPES_WLR_TABLET_V2_H */