mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
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>
This commit is contained in:
parent
91881e8f89
commit
2aee2069a0
1 changed files with 17 additions and 8 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue