[PATCH wayland 2/8] client: Reword and add documentation about the marshal functions

Bryce Harrington bryce at osg.samsung.com
Fri Oct 2 13:33:43 PDT 2015


On Fri, Oct 02, 2015 at 05:32:53PM +0800, Jonas Ådahl wrote:
> Some rewording to improve grammar a bit with some additions about the
> type expectations of va_list arguments.
> 
> Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
Reviewed-by: Bryce Harrington <bryce at osg.samsung.com>

> ---
>  src/wayland-client.c | 12 +++++++-----
>  1 file changed, 7 insertions(+), 5 deletions(-)
> 
> diff --git a/src/wayland-client.c b/src/wayland-client.c
> index e4b659e..cd80d84 100644
> --- a/src/wayland-client.c
> +++ b/src/wayland-client.c
> @@ -575,9 +575,9 @@ create_outgoing_proxy(struct wl_proxy *proxy, const struct wl_message *message,
>   * \param args Extra arguments for the given request
>   * \param interface The interface to use for the new proxy
>   *
> - * Translates the request given by opcode and the extra arguments into the
> - * wire format and write it to the connection buffer.  This version takes an
> - * array of the union type wl_argument.
> + * This function translates a request given an opcode, an interface and a
> + * wl_argument array to the wire format and writes it to the connection
> + * buffer.
>   *
>   * For new-id arguments, this function will allocate a new wl_proxy
>   * and send the ID to the server.  The new wl_proxy will be returned
> @@ -669,8 +669,10 @@ wl_proxy_marshal(struct wl_proxy *proxy, uint32_t opcode, ...)
>   * \param ... Extra arguments for the given request
>   * \return A new wl_proxy for the new_id argument or NULL on error
>   *
> - * Translates the request given by opcode and the extra arguments into the
> - * wire format and write it to the connection buffer.
> + * This function translates a request given an opcode, an interface and extra
> + * arguments to the wire format and writes it to the connection buffer. The
> + * types of the extra arguments must correspond to the argument types of the
> + * method associated with the opcode in the interface.
>   *
>   * For new-id arguments, this function will allocate a new wl_proxy
>   * and send the ID to the server.  The new wl_proxy will be returned
> -- 
> 2.4.3
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list