[PATCH] test/ivi: include protocol headers for all used protocols

Bill Spitzak spitzak at gmail.com
Fri May 22 11:48:44 PDT 2015


Although it sounds like the distributed header files will not be 
generated with -c, I don't see why local header files such as 
ivi-application-client-protocol.h, ivi-hmi-controller-client-protocol.h, 
and weston-test-client-protocol.h can't be and this patch allows that.
On 05/22/2015 11:45 AM, Bill Spitzak wrote:
> This seems like a good idea for consistency that the protocol header
> is included for any protocols used by the code. This also means the
> code will compile with headers generated by wayland-scanner -c.
>
> Fixed to use angle brackets.
> ---
>   clients/ivi-shell-user-interface.c |    1 +
>   tests/weston-test-client-helper.h  |    1 +
>   2 files changed, 2 insertions(+)
>
> diff --git a/clients/ivi-shell-user-interface.c b/clients/ivi-shell-user-interface.c
> index a83f9ad..dcc49ed 100644
> --- a/clients/ivi-shell-user-interface.c
> +++ b/clients/ivi-shell-user-interface.c
> @@ -32,6 +32,7 @@
>   #include <sys/mman.h>
>   #include <getopt.h>
>   #include <wayland-cursor.h>
> +#include <wayland-client-protocol.h>
>   #include "../shared/cairo-util.h"
>   #include "../shared/config-parser.h"
>   #include "../shared/os-compatibility.h"
> diff --git a/tests/weston-test-client-helper.h b/tests/weston-test-client-helper.h
> index 8635471..4a4b56b 100644
> --- a/tests/weston-test-client-helper.h
> +++ b/tests/weston-test-client-helper.h
> @@ -27,6 +27,7 @@
>
>   #include <assert.h>
>   #include <stdbool.h>
> +#include <wayland-client-protocol.h>
>   #include "weston-test-runner.h"
>   #include "weston-test-client-protocol.h"
>
>


More information about the wayland-devel mailing list