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

Pekka Paalanen ppaalanen at gmail.com
Sun May 24 23:05:22 PDT 2015


On Fri, 22 May 2015 11:45:56 -0700
Bill Spitzak <spitzak at gmail.com> 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"
>  

FWIW,
Acked-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>


Thanks,
pq


More information about the wayland-devel mailing list