server: add wl_resource_post_error() docs

Signed-off-by: Kirill Primak <vyivel@eclair.cafe>
This commit is contained in:
Kirill Primak 2024-05-23 19:25:05 +03:00 committed by Simon Ser
parent a6a4e081da
commit 64248963d3
2 changed files with 9 additions and 1 deletions

View file

@ -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);

View file

@ -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, ...)