scanner: Guard interface declarations

This allows to include client and server headers in the same file
fixing warnings like

In file included from ../subprojects/wlroots/include/wlr/types/wlr_layer_shell_v1.h:16,
                 from ../src/desktop.h:16,
                 from ../src/server.h:13,
                 from ../tests/testlib.c:8:
tests/59830eb@@footest@sta/wlr-layer-shell-unstable-v1-protocol.h:80:34: warning: redundant redeclaration of ‘zwlr_layer_shell_v1_interface’ [-Wredundant-decls]
   80 | extern const struct wl_interface zwlr_layer_shell_v1_interface;
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../tests/testlib.h:8,
                 from ../tests/testlib.c:7:
tests/59830eb@@footest@sta/wlr-layer-shell-unstable-v1-client-protocol.h:77:34: note: previous declaration of ‘zwlr_layer_shell_v1_interface’ was here
   77 | extern const struct wl_interface zwlr_layer_shell_v1_interface;
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../subprojects/wlroots/include/wlr/types/wlr_layer_shell_v1.h:16,
                 from ../src/desktop.h:16,
                 from ../src/server.h:13,
                 from ../tests/testlib.c:8:
tests/59830eb@@footest@sta/wlr-layer-shell-unstable-v1-protocol.h:106:34: warning: redundant redeclaration of ‘zwlr_layer_surface_v1_interface’ [-Wredundant-decls]
  106 | extern const struct wl_interface zwlr_layer_surface_v1_interface;
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../tests/testlib.h:8,
                 from ../tests/testlib.c:7:
tests/59830eb@@footest@sta/wlr-layer-shell-unstable-v1-client-protocol.h:103:34: note: previous declaration of ‘zwlr_layer_surface_v1_interface’ was here
  103 | extern const struct wl_interface zwlr_layer_surface_v1_interface;

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Closes: #158
2 jobs for master in 54 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
failed #2402696
build-native-autotools

00:00:54

failed #2402697
build-native-meson

00:00:54

 
Name Stage Failure
failed
build-native-meson Build
W: GPG error: http://deb.debian.org/debian buster-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
W: GPG error: http://deb.debian.org/debian buster-backports InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/debian buster-backports InRelease' is not signed.
Uploading artifacts...
WARNING: build-meson/meson-logs: no matching files
WARNING: prefix-*: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
build-native-autotools Build
W: GPG error: http://deb.debian.org/debian buster-backports InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/debian buster-backports InRelease' is not signed.
Uploading artifacts...
WARNING: build-*/wayland-*.tar.xz: no matching files
WARNING: build-*/wayland*/_build/sub/*.log: no matching files
WARNING: build-*/*.log: no matching files
WARNING: prefix-*: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1