[PATCH wayland 2/3] shm: Move deprecated function to the bottom of the file
Derek Foreman
derekf at osg.samsung.com
Fri Jun 26 09:35:00 PDT 2015
In wayland-server.c we group the deprecated functions and
disable doxygen for them. Do that here too.
Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
---
src/wayland-shm.c | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
diff --git a/src/wayland-shm.c b/src/wayland-shm.c
index a9a0b76..da11743 100644
--- a/src/wayland-shm.c
+++ b/src/wayland-shm.c
@@ -315,14 +315,6 @@ wl_display_init_shm(struct wl_display *display)
}
WL_EXPORT struct wl_shm_buffer *
-wl_shm_buffer_create(struct wl_client *client,
- uint32_t id, int32_t width, int32_t height,
- int32_t stride, uint32_t format)
-{
- abort();
-}
-
-WL_EXPORT struct wl_shm_buffer *
wl_shm_buffer_get(struct wl_resource *resource)
{
if (resource == NULL)
@@ -546,3 +538,20 @@ wl_shm_buffer_end_access(struct wl_shm_buffer *buffer)
sigbus_data->current_pool = NULL;
}
}
+
+/** \cond */ /* Deprecated functions below. */
+
+WL_EXPORT struct wl_shm_buffer *
+wl_shm_buffer_create(struct wl_client *client,
+ uint32_t id, int32_t width, int32_t height,
+ int32_t stride, uint32_t format)
+{
+ abort();
+}
+
+/** \endcond */
+
+/* Functions at the end of this file are deprecated. Instead of adding new
+ * code here, add it before the comment above that states:
+ * Deprecated functions below.
+ */
--
2.1.4
More information about the wayland-devel
mailing list