From 45f992b27b7a8f74dd5b05e9961dead25bb7a248 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 18 Jan 2021 12:31:20 +0100 Subject: region: make wlr_region_create private This function should only be called from the handler for wl_compositor.create_region requests. --- include/types/wlr_region.h | 13 +++++++++++++ include/wlr/types/wlr_region.h | 7 ------- 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 include/types/wlr_region.h (limited to 'include') diff --git a/include/types/wlr_region.h b/include/types/wlr_region.h new file mode 100644 index 00000000..b0cda349 --- /dev/null +++ b/include/types/wlr_region.h @@ -0,0 +1,13 @@ +#ifndef TYPES_WLR_REGION_H +#define TYPES_WLR_REGION_H + +#include + +/* + * Creates a new region resource with the provided new ID. If `resource_list` is + * non-NULL, adds the region's resource to the list. + */ +struct wl_resource *region_create(struct wl_client *client, + uint32_t version, uint32_t id); + +#endif diff --git a/include/wlr/types/wlr_region.h b/include/wlr/types/wlr_region.h index ec7f73aa..532f86df 100644 --- a/include/wlr/types/wlr_region.h +++ b/include/wlr/types/wlr_region.h @@ -12,13 +12,6 @@ #include #include -/* - * Creates a new region resource with the provided new ID. If `resource_list` is - * non-NULL, adds the region's resource to the list. - */ -struct wl_resource *wlr_region_create(struct wl_client *client, - uint32_t version, uint32_t id, struct wl_list *resource_list); - pixman_region32_t *wlr_region_from_resource(struct wl_resource *resource); #endif -- cgit v1.2.3