mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
Do not allow nullable new_id
The usefulness of this is limited, and `libwayland-client` doesn't provide a way to pass a null `new_id` since the id is generated by the library and given to the caller as the return value. Signed-off-by: Ian Douglas Scott <idscott@system76.com>
This commit is contained in:
parent
13b05c9ed1
commit
971f8e4ace
4 changed files with 4 additions and 8 deletions
|
|
@ -245,9 +245,6 @@ TEST(connection_marshal)
|
|||
marshal(&data, "n", 12, &object);
|
||||
assert(data.buffer[2] == object.id);
|
||||
|
||||
marshal(&data, "?n", 12, NULL);
|
||||
assert(data.buffer[2] == 0);
|
||||
|
||||
array.data = (void *) text;
|
||||
array.size = sizeof text;
|
||||
marshal(&data, "a", 20, &array);
|
||||
|
|
|
|||
|
|
@ -63,8 +63,8 @@ TEST(message_count_arrays)
|
|||
{ "middle", "iufasonh", NULL },
|
||||
{ "multiple", "aaiufaasonhaa", NULL },
|
||||
{ "leading_version", "2aaiufaasonhaa", NULL },
|
||||
{ "among_nullables", "iufsa?oa?nah", NULL },
|
||||
{ "all_mixed", "2aiufas?oa?na", NULL },
|
||||
{ "among_nullables", "iufsa?oa?sah", NULL },
|
||||
{ "all_mixed", "2aiufas?oa?sa", NULL },
|
||||
};
|
||||
const struct {
|
||||
const struct wl_message *message;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue