mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
server: add wl_resource_post_error() docs
Signed-off-by: Kirill Primak <vyivel@eclair.cafe>
This commit is contained in:
parent
a6a4e081da
commit
64248963d3
2 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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, ...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue