aboutsummaryrefslogtreecommitdiffstats
path: root/src/wayland-shm.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-11-05 13:57:46 -0600
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2015-11-06 13:42:46 +0200
commit2aee2069a04afebf839d63c89411f639247e780b (patch)
tree39d7a6ced22b84feab62f4d3871c9fce241918b3 /src/wayland-shm.c
parentshm: Deprecate wl_shm_buffer_create() (diff)
downloadwayland-2aee2069a04afebf839d63c89411f639247e780b.tar
wayland-2aee2069a04afebf839d63c89411f639247e780b.tar.gz
wayland-2aee2069a04afebf839d63c89411f639247e780b.tar.bz2
wayland-2aee2069a04afebf839d63c89411f639247e780b.tar.lz
wayland-2aee2069a04afebf839d63c89411f639247e780b.tar.xz
wayland-2aee2069a04afebf839d63c89411f639247e780b.tar.zst
wayland-2aee2069a04afebf839d63c89411f639247e780b.zip
shm: Move deprecated function to the bottom of the file
In wayland-server.c we group the deprecated functions and disable doxygen for them. Do that here too. Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Giulio Camuffo <giuliocamuffo@gmail.com>
Diffstat (limited to 'src/wayland-shm.c')
-rw-r--r--src/wayland-shm.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/wayland-shm.c b/src/wayland-shm.c
index a05a8a0..db23909 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)
-{
- return NULL;
-}
-
-WL_EXPORT struct wl_shm_buffer *
wl_shm_buffer_get(struct wl_resource *resource)
{
if (resource == NULL)
@@ -588,3 +580,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)
+{
+ return NULL;
+}
+
+/** \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.
+ */