compositor: deprecate wlr/types/wlr_region.h

The only function in that header is now also declared in
wlr/types/wlr_compositor.h.
master
Kirill Primak 2 years ago
parent 26158d0718
commit 7661ab2bf1

@ -414,6 +414,11 @@ void wlr_surface_set_preferred_buffer_scale(struct wlr_surface *surface,
void wlr_surface_set_preferred_buffer_transform(struct wlr_surface *surface, void wlr_surface_set_preferred_buffer_transform(struct wlr_surface *surface,
enum wl_output_transform transform); enum wl_output_transform transform);
/**
* Get a Pixman region from a wl_region resource.
*/
const pixman_region32_t *wlr_region_from_resource(struct wl_resource *resource);
/** /**
* Create the wl_compositor global, which can be used by clients to create * Create the wl_compositor global, which can be used by clients to create
* surfaces and regions. * surfaces and regions.

@ -1,16 +1,6 @@
/* /*
* This is a stable interface of wlroots. Future changes will be limited to: * This is a deprecated interface of wlroots. It will be removed in a future
* * version. wlr/types/wlr_compositor.h should be used instead.
* - New functions
* - New struct members
* - New enum members
*
* Note that wlroots does not make an ABI compatibility promise - in the future,
* the layout and size of structs used by wlroots may change, requiring code
* depending on this header to be recompiled (but not edited).
*
* Breaking changes are announced in the release notes and follow a 1-year
* deprecation schedule.
*/ */
#ifndef WLR_TYPES_WLR_REGION_H #ifndef WLR_TYPES_WLR_REGION_H

@ -5,7 +5,6 @@
#include <wlr/types/wlr_buffer.h> #include <wlr/types/wlr_buffer.h>
#include <wlr/types/wlr_compositor.h> #include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_matrix.h> #include <wlr/types/wlr_matrix.h>
#include <wlr/types/wlr_region.h>
#include <wlr/types/wlr_subcompositor.h> #include <wlr/types/wlr_subcompositor.h>
#include <wlr/types/wlr_output.h> #include <wlr/types/wlr_output.h>
#include <wlr/util/log.h> #include <wlr/util/log.h>

@ -6,7 +6,6 @@
#include <wayland-server-core.h> #include <wayland-server-core.h>
#include <wlr/types/wlr_compositor.h> #include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_pointer_constraints_v1.h> #include <wlr/types/wlr_pointer_constraints_v1.h>
#include <wlr/types/wlr_region.h>
#include <wlr/util/box.h> #include <wlr/util/box.h>
#include <wlr/util/log.h> #include <wlr/util/log.h>

@ -3,7 +3,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <wayland-server-protocol.h> #include <wayland-server-protocol.h>
#include <wlr/types/wlr_region.h> #include <wlr/types/wlr_compositor.h>
#include "types/wlr_region.h" #include "types/wlr_region.h"
static const struct wl_region_interface region_impl; static const struct wl_region_interface region_impl;

Loading…
Cancel
Save