diff options
| author | Simon Ser <contact@emersion.fr> | 2021-07-13 15:52:31 +0200 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2021-07-13 15:52:31 +0200 |
| commit | 8899310fc8ffc6f716ec6342ae415cb8692df855 (patch) | |
| tree | 68833264e86319b6bca3851c701ce0ec21fa1e29 | |
| parent | tests: Test wayland-scanner with a description in an entry (diff) | |
| download | wayland-8899310fc8ffc6f716ec6342ae415cb8692df855.tar wayland-8899310fc8ffc6f716ec6342ae415cb8692df855.tar.gz wayland-8899310fc8ffc6f716ec6342ae415cb8692df855.tar.bz2 wayland-8899310fc8ffc6f716ec6342ae415cb8692df855.tar.lz wayland-8899310fc8ffc6f716ec6342ae415cb8692df855.tar.xz wayland-8899310fc8ffc6f716ec6342ae415cb8692df855.tar.zst wayland-8899310fc8ffc6f716ec6342ae415cb8692df855.zip | |
shm: document wl_shm_buffer
The main motivation is to make it clear when a wl_shm_buffer is
destroyed.
Signed-off-by: Simon Ser <contact@emersion.fr>
| -rw-r--r-- | src/wayland-shm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wayland-shm.c b/src/wayland-shm.c index 85204e4..671549c 100644 --- a/src/wayland-shm.c +++ b/src/wayland-shm.c @@ -66,6 +66,15 @@ struct wl_shm_pool { bool sigbus_is_impossible; }; +/** \class wl_shm_buffer + * + * \brief A SHM buffer + * + * wl_shm_buffer provides a helper for accessing the contents of a wl_buffer + * resource created via the wl_shm interface. + * + * A wl_shm_buffer becomes invalid as soon as its #wl_resource is destroyed. + */ struct wl_shm_buffer { struct wl_resource *resource; int32_t width, height; |
