diff options
| author | Kirill Primak <vyivel@eclair.cafe> | 2024-05-23 19:25:05 +0300 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2024-08-09 20:29:24 +0000 |
| commit | 64248963d31395b373e095972f46f61fb95bf462 (patch) | |
| tree | a2e5a00596575557690fcb2dcc6042a891ca6f08 /src | |
| parent | Put WL_DEPRECATED in front of the function declarations (diff) | |
| download | wayland-64248963d31395b373e095972f46f61fb95bf462.tar wayland-64248963d31395b373e095972f46f61fb95bf462.tar.gz wayland-64248963d31395b373e095972f46f61fb95bf462.tar.bz2 wayland-64248963d31395b373e095972f46f61fb95bf462.tar.lz wayland-64248963d31395b373e095972f46f61fb95bf462.tar.xz wayland-64248963d31395b373e095972f46f61fb95bf462.tar.zst wayland-64248963d31395b373e095972f46f61fb95bf462.zip | |
server: add wl_resource_post_error() docs
Signed-off-by: Kirill Primak <vyivel@eclair.cafe>
Diffstat (limited to 'src')
| -rw-r--r-- | src/wayland-server-core.h | 1 | ||||
| -rw-r--r-- | src/wayland-server.c | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/wayland-server-core.h b/src/wayland-server-core.h index fb900a9..26c527e 100644 --- a/src/wayland-server-core.h +++ b/src/wayland-server-core.h @@ -550,7 +550,6 @@ void wl_resource_queue_event_array(struct wl_resource *resource, uint32_t opcode, union wl_argument *args); -/* msg is a printf format string, variable args are its args. */ void wl_resource_post_error(struct wl_resource *resource, uint32_t code, const char *msg, ...) WL_PRINTF(3, 4); diff --git a/src/wayland-server.c b/src/wayland-server.c index 2fe69af..c54a6d6 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -313,6 +313,15 @@ wl_resource_post_error_vargs(struct wl_resource *resource, } +/** Post a protocol error + * + * \param resource The resource object + * \param code The error code + * \param msg The error message format string + * \param ... The format string arguments + * + * \memberof wl_resource + */ WL_EXPORT void wl_resource_post_error(struct wl_resource *resource, uint32_t code, const char *msg, ...) |
