aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-03-30 10:17:15 +0200
committerSimon Ser <contact@emersion.fr>2021-04-06 14:57:44 +0200
commitc430cd7d537cc06a645c46ebff18836b06747183 (patch)
tree43e27e0db6251639588c968edfc773b2b691d3f3 /include
parente76583f1addd384151956ad779bfd800beeda8d6 (diff)
surface: make wlr_surface_create private
This is not meant to be exposed in the public API, just like wlr_region_create [1]. [1]: https://github.com/swaywm/wlroots/pull/2662
Diffstat (limited to 'include')
-rw-r--r--include/types/wlr_surface.h15
-rw-r--r--include/wlr/types/wlr_surface.h10
2 files changed, 15 insertions, 10 deletions
diff --git a/include/types/wlr_surface.h b/include/types/wlr_surface.h
new file mode 100644
index 00000000..1de8ea0e
--- /dev/null
+++ b/include/types/wlr_surface.h
@@ -0,0 +1,15 @@
+#ifndef TYPES_WLR_SURFACE_H
+#define TYPES_WLR_SURFACE_H
+
+#include <wlr/types/wlr_surface.h>
+
+struct wlr_renderer;
+
+/**
+ * Create a new surface resource with the provided new ID. If `resource_list`
+ * is non-NULL, adds the surface's resource to the list.
+ */
+struct wlr_surface *surface_create(struct wl_client *client,
+ uint32_t version, uint32_t id, struct wlr_renderer *renderer);
+
+#endif
diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h
index b3ff905c..d99c182a 100644
--- a/include/wlr/types/wlr_surface.h
+++ b/include/wlr/types/wlr_surface.h
@@ -187,16 +187,6 @@ struct wlr_subsurface {
typedef void (*wlr_surface_iterator_func_t)(struct wlr_surface *surface,
int sx, int sy, void *data);
-struct wlr_renderer;
-
-/**
- * Create a new surface resource with the provided new ID. If `resource_list`
- * is non-NULL, adds the surface's resource to the list.
- */
-struct wlr_surface *wlr_surface_create(struct wl_client *client,
- uint32_t version, uint32_t id, struct wlr_renderer *renderer,
- struct wl_list *resource_list);
-
/**
* Set the lifetime role for this surface. Returns 0 on success or -1 if the
* role cannot be set.