From 2aee2069a04afebf839d63c89411f639247e780b Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Thu, 5 Nov 2015 13:57:46 -0600 Subject: [PATCH] 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 Signed-off-by: Derek Foreman Reviewed-by: Giulio Camuffo --- 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 a05a8a06..db239095 100644 --- a/src/wayland-shm.c +++ b/src/wayland-shm.c @@ -314,14 +314,6 @@ wl_display_init_shm(struct wl_display *display) return 0; } -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) { @@ -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. + */