wire format array contents

Daniel Stone daniel at fooishbar.org
Fri Sep 27 14:32:01 PDT 2013


Hi,

On 27 September 2013 08:31, Micah Nordland <mpnordland at gmail.com> wrote:
> The wire format spec includes an array type:
> array
>
>     Starts with 32-bit array size in bytes, followed by the array
> contents verbatim, and finally padding to a 32-bit boundary.
>
> What type are the contents? The protocol description only uses the
> array type in one place, the wl_keyboard::enter event
> (http://wayland.freedesktop.org/docs/html/protocol-spec-interface-wl_keyboard.html)
> and simply specifies array as the argument type without specifying
> what type of things the array contains.

The contents are defined by the user.  For the keyboard enter event,
it is an array of uint32_t values, each representing one keycode which
is depressed at enter time.

Documentation patches welcome. ;)

Cheers,
Daniel


More information about the wayland-devel mailing list