aboutsummaryrefslogtreecommitdiffstats
path: root/src/wayland-server-core.h
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-11-05 13:57:45 -0600
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2015-11-06 13:42:33 +0200
commit91881e8f89262f18f7543a6fd5f440ea5c13ce30 (patch)
tree600395e5bcdaa230add5d8a9a8d7e77d1cce6b09 /src/wayland-server-core.h
parentdoc: output enum and bitfield attributes in the documentation (diff)
downloadwayland-91881e8f89262f18f7543a6fd5f440ea5c13ce30.tar
wayland-91881e8f89262f18f7543a6fd5f440ea5c13ce30.tar.gz
wayland-91881e8f89262f18f7543a6fd5f440ea5c13ce30.tar.bz2
wayland-91881e8f89262f18f7543a6fd5f440ea5c13ce30.tar.lz
wayland-91881e8f89262f18f7543a6fd5f440ea5c13ce30.tar.xz
wayland-91881e8f89262f18f7543a6fd5f440ea5c13ce30.tar.zst
wayland-91881e8f89262f18f7543a6fd5f440ea5c13ce30.zip
shm: Deprecate wl_shm_buffer_create()
From irc: <pq> it creates a wl_buffer object in a way that no client can ever access the storage. So, let's replace it with return NULL; and mark it with attribute deprecated in the header. Reviewed-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-server-core.h')
-rw-r--r--src/wayland-server-core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland-server-core.h b/src/wayland-server-core.h
index 73f2dd2..85b4b9e 100644
--- a/src/wayland-server-core.h
+++ b/src/wayland-server-core.h
@@ -472,7 +472,7 @@ wl_display_add_shm_format(struct wl_display *display, uint32_t format);
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);
+ int32_t stride, uint32_t format) WL_DEPRECATED;
void wl_log_set_handler_server(wl_log_func_t handler);