Rename compositor.h to libweston/libweston.h

The main idea is to make libweston users use the form

 #include <libweston/libweston.h>

instead of the plain

 #include <compositor.h>

which is prone to name conflicts. This is reflected both in the installed
files, and the internal header search paths so that Weston would use the exact
same form as an external project using libweston would.

The public headers are moved under a new top-level directory include/ to make
them clearly stand out as special (public API).

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
dev
Pekka Paalanen 6 years ago
parent a78cf77582
commit 3d5d9476e3
  1. 2
      compositor/cms-colord.c
  2. 2
      compositor/cms-helper.c
  3. 2
      compositor/cms-helper.h
  4. 2
      compositor/cms-static.c
  5. 2
      compositor/main.c
  6. 2
      compositor/screen-share.c
  7. 2
      compositor/systemd-notify.c
  8. 2
      compositor/text-backend.c
  9. 2
      compositor/weston-screenshooter.c
  10. 2
      compositor/weston.h
  11. 2
      compositor/xwayland.c
  12. 2
      desktop-shell/shell.h
  13. 2
      fullscreen-shell/fullscreen-shell.c
  14. 0
      include/libweston/libweston.h
  15. 1
      include/libweston/meson.build
  16. 2
      ivi-shell/ivi-layout-export.h
  17. 2
      ivi-shell/ivi-layout-private.h
  18. 2
      ivi-shell/ivi-layout.c
  19. 2
      ivi-shell/ivi-shell.h
  20. 2
      libweston-desktop/client.c
  21. 2
      libweston-desktop/internal.h
  22. 2
      libweston-desktop/libweston-desktop.c
  23. 2
      libweston-desktop/libweston-desktop.h
  24. 2
      libweston-desktop/seat.c
  25. 2
      libweston-desktop/surface.c
  26. 2
      libweston-desktop/wl-shell.c
  27. 2
      libweston-desktop/xdg-shell-v6.c
  28. 2
      libweston-desktop/xdg-shell.c
  29. 2
      libweston-desktop/xwayland.c
  30. 2
      libweston/animation.c
  31. 2
      libweston/bindings.c
  32. 2
      libweston/clipboard.c
  33. 2
      libweston/compositor-drm.c
  34. 2
      libweston/compositor-drm.h
  35. 2
      libweston/compositor-fbdev.c
  36. 2
      libweston/compositor-fbdev.h
  37. 2
      libweston/compositor-headless.c
  38. 2
      libweston/compositor-headless.h
  39. 2
      libweston/compositor-rdp.c
  40. 2
      libweston/compositor-rdp.h
  41. 2
      libweston/compositor-wayland.c
  42. 2
      libweston/compositor-wayland.h
  43. 2
      libweston/compositor-x11.c
  44. 2
      libweston/compositor-x11.h
  45. 2
      libweston/compositor.c
  46. 2
      libweston/data-device.c
  47. 2
      libweston/dbus.c
  48. 2
      libweston/dbus.h
  49. 2
      libweston/gl-renderer.h
  50. 2
      libweston/input.c
  51. 2
      libweston/launcher-direct.c
  52. 2
      libweston/launcher-impl.h
  53. 2
      libweston/launcher-logind.c
  54. 2
      libweston/launcher-util.c
  55. 2
      libweston/launcher-util.h
  56. 2
      libweston/launcher-weston-launch.c
  57. 2
      libweston/libinput-device.c
  58. 2
      libweston/libinput-device.h
  59. 2
      libweston/libinput-seat.c
  60. 2
      libweston/libinput-seat.h
  61. 2
      libweston/linux-dmabuf.c
  62. 2
      libweston/linux-explicit-synchronization.c
  63. 2
      libweston/log.c
  64. 1
      libweston/meson.build
  65. 2
      libweston/noop-renderer.c
  66. 2
      libweston/pixman-renderer.h
  67. 2
      libweston/plugin-registry.c
  68. 2
      libweston/screenshooter.c
  69. 2
      libweston/spring-tool.c
  70. 2
      libweston/timeline.c
  71. 2
      libweston/touch-calibration.c
  72. 2
      libweston/vaapi-recorder.c
  73. 2
      libweston/weston-debug.c
  74. 2
      libweston/zoom.c
  75. 2
      remoting/remoting-plugin.h
  76. 2
      tests/ivi-layout-internal-test.c
  77. 2
      tests/ivi-layout-test-plugin.c
  78. 2
      tests/plugin-registry-test.c
  79. 2
      tests/surface-global-test.c
  80. 2
      tests/surface-screenshot-test.c
  81. 2
      tests/surface-test.c
  82. 2
      tests/weston-test.c
  83. 2
      xwayland/dnd.c
  84. 2
      xwayland/window-manager.c
  85. 2
      xwayland/xwayland.h

@ -33,7 +33,7 @@
#include <string.h>
#include <colord.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "weston.h"
#include "cms-helper.h"
#include "shared/helpers.h"

@ -34,7 +34,7 @@
#include <lcms2.h>
#endif
#include "compositor.h"
#include <libweston/libweston.h>
#include "cms-helper.h"
#ifdef HAVE_LCMS

@ -28,7 +28,7 @@
#include "config.h"
#include "compositor.h"
#include <libweston/libweston.h>
/* General overview on how to be a CMS plugin:
*

@ -28,7 +28,7 @@
#include <stdlib.h>
#include <string.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "cms-helper.h"
#include "shared/helpers.h"
#include "weston.h"

@ -47,7 +47,7 @@
#include <linux/limits.h>
#include "weston.h"
#include "compositor.h"
#include <libweston/libweston.h>
#include "../shared/os-compatibility.h"
#include "../shared/helpers.h"
#include "../shared/string-helpers.h"

@ -40,7 +40,7 @@
#include <wayland-client.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "weston.h"
#include "shared/helpers.h"
#include "shared/os-compatibility.h"

@ -33,7 +33,7 @@
#include "shared/helpers.h"
#include "shared/string-helpers.h"
#include "shared/zalloc.h"
#include "compositor.h"
#include <libweston/libweston.h>
#include "weston.h"
struct systemd_notifier {

@ -33,7 +33,7 @@
#include <unistd.h>
#include <time.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "weston.h"
#include "text-input-unstable-v1-server-protocol.h"
#include "input-method-unstable-v1-server-protocol.h"

@ -28,7 +28,7 @@
#include <stdint.h>
#include <linux/input.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "weston.h"
#include "weston-screenshooter-server-protocol.h"
#include "shared/helpers.h"

@ -30,7 +30,7 @@
extern "C" {
#endif
#include <compositor.h>
#include <libweston/libweston.h>
void
screenshooter_create(struct weston_compositor *ec);

@ -29,7 +29,7 @@
#include <signal.h>
#include <sys/socket.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor/weston.h"
#include "xwayland/xwayland-api.h"
#include "shared/helpers.h"

@ -27,7 +27,7 @@
#include <stdint.h>
#include <time.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "xwayland/xwayland-api.h"
#include "weston-desktop-shell-server-protocol.h"

@ -33,7 +33,7 @@
#include <string.h>
#include <assert.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor/weston.h"
#include "fullscreen-shell-unstable-v1-server-protocol.h"
#include "shared/helpers.h"

@ -1,4 +1,5 @@
install_headers(
'libweston.h',
'timeline-object.h',
subdir: dir_include_libweston_install
)

@ -59,7 +59,7 @@ extern "C" {
#include <limits.h>
#include "stdbool.h"
#include "compositor.h"
#include <libweston/libweston.h>
#include "plugin-registry.h"
#define IVI_SUCCEEDED (0)

@ -28,7 +28,7 @@
#include <stdint.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "ivi-layout-export.h"
#include "libweston-desktop/libweston-desktop.h"

@ -62,7 +62,7 @@
#include <stdint.h>
#include "compositor/weston.h"
#include "compositor.h"
#include <libweston/libweston.h>
#include "ivi-shell.h"
#include "ivi-layout-export.h"
#include "ivi-layout-private.h"

@ -29,7 +29,7 @@
#include <stdbool.h>
#include <stdint.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "libweston-desktop/libweston-desktop.h"
struct ivi_shell

@ -25,7 +25,7 @@
#include <wayland-server.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "zalloc.h"
#include "libweston-desktop.h"

@ -24,7 +24,7 @@
#ifndef WESTON_DESKTOP_INTERNAL_H
#define WESTON_DESKTOP_INTERNAL_H
#include "compositor.h"
#include <libweston/libweston.h>
struct weston_desktop_seat;
struct weston_desktop_client;

@ -28,7 +28,7 @@
#include <wayland-server.h>
#include <assert.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "zalloc.h"
#include "helpers.h"

@ -24,7 +24,7 @@
#ifndef WESTON_DESKTOP_H
#define WESTON_DESKTOP_H
#include "compositor.h"
#include <libweston/libweston.h>
#include <pixman.h>
#include <stdbool.h>

@ -30,7 +30,7 @@
#include <wayland-server.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "zalloc.h"
#include "libweston-desktop.h"

@ -28,7 +28,7 @@
#include <wayland-server.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "zalloc.h"
#include "libweston-desktop.h"

@ -30,7 +30,7 @@
#include <wayland-server.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "zalloc.h"
#include "libweston-desktop.h"

@ -31,7 +31,7 @@
#include <wayland-server.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "zalloc.h"
#include "xdg-shell-unstable-v6-server-protocol.h"

@ -31,7 +31,7 @@
#include <wayland-server.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "zalloc.h"
#include "xdg-shell-server-protocol.h"

@ -30,7 +30,7 @@
#include <wayland-server.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "zalloc.h"
#include "libweston-desktop.h"

@ -35,7 +35,7 @@
#include <unistd.h>
#include <fcntl.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "shared/helpers.h"
#include "shared/timespec-util.h"

@ -29,7 +29,7 @@
#include <stdlib.h>
#include <linux/input.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "shared/helpers.h"
#include "shared/timespec-util.h"

@ -33,7 +33,7 @@
#include <unistd.h>
#include <sys/uio.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "shared/helpers.h"
struct clipboard_source {

@ -50,7 +50,7 @@
#include <gbm.h>
#include <libudev.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor-drm.h"
#include "weston-debug.h"
#include "shared/helpers.h"

@ -28,7 +28,7 @@
#ifndef WESTON_COMPOSITOR_DRM_H
#define WESTON_COMPOSITOR_DRM_H
#include "compositor.h"
#include <libweston/libweston.h>
#include "plugin-registry.h"
#ifdef __cplusplus

@ -45,7 +45,7 @@
#include <libudev.h>
#include "shared/helpers.h"
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor-fbdev.h"
#include "launcher-util.h"
#include "pixman-renderer.h"

@ -32,7 +32,7 @@ extern "C" {
#include <stdint.h>
#include "compositor.h"
#include <libweston/libweston.h>
#define WESTON_FBDEV_BACKEND_CONFIG_VERSION 2

@ -33,7 +33,7 @@
#include <sys/time.h>
#include <stdbool.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor-headless.h"
#include "shared/helpers.h"
#include "linux-explicit-synchronization.h"

@ -32,7 +32,7 @@ extern "C" {
#include <stdint.h>
#include "compositor.h"
#include <libweston/libweston.h>
#define WESTON_HEADLESS_BACKEND_CONFIG_VERSION 2

@ -98,7 +98,7 @@
#include "shared/helpers.h"
#include "shared/timespec-util.h"
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor-rdp.h"
#include "pixman-renderer.h"

@ -30,7 +30,7 @@
extern "C" {
#endif
#include "compositor.h"
#include <libweston/libweston.h>
#include "plugin-registry.h"
#define WESTON_RDP_OUTPUT_API_NAME "weston_rdp_output_api_v1"

@ -44,7 +44,7 @@
#include <wayland-egl.h>
#endif
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor-wayland.h"
#include "gl-renderer.h"
#include "weston-egl-ext.h"

@ -26,7 +26,7 @@
#ifndef WESTON_COMPOSITOR_WAYLAND_H
#define WESTON_COMPOSITOR_WAYLAND_H
#include "compositor.h"
#include <libweston/libweston.h>
#ifdef __cplusplus
extern "C" {

@ -50,7 +50,7 @@
#include <xkbcommon/xkbcommon.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor-x11.h"
#include "shared/config-parser.h"
#include "shared/helpers.h"

@ -32,7 +32,7 @@ extern "C" {
#include <stdint.h>
#include "compositor.h"
#include <libweston/libweston.h>
#define WESTON_X11_BACKEND_CONFIG_VERSION 2

@ -55,7 +55,7 @@
#include "timeline.h"
#include "compositor.h"
#include <libweston/libweston.h>
#include "weston-debug.h"
#include "linux-dmabuf.h"
#include "viewporter-server-protocol.h"

@ -32,7 +32,7 @@
#include <stdio.h>
#include <assert.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "shared/helpers.h"
#include "shared/timespec-util.h"

@ -44,7 +44,7 @@
#include <unistd.h>
#include <wayland-server.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "dbus.h"
/*

@ -31,7 +31,7 @@
#include <errno.h>
#include <wayland-server.h>
#include "compositor.h"
#include <libweston/libweston.h>
#ifdef HAVE_DBUS

@ -27,7 +27,7 @@
#include <stdint.h>
#include "compositor.h"
#include <libweston/libweston.h>
#ifdef ENABLE_EGL

@ -41,7 +41,7 @@
#include "shared/helpers.h"
#include "shared/os-compatibility.h"
#include "shared/timespec-util.h"
#include "compositor.h"
#include <libweston/libweston.h>
#include "relative-pointer-unstable-v1-server-protocol.h"
#include "pointer-constraints-unstable-v1-server-protocol.h"
#include "input-timestamps-unstable-v1-server-protocol.h"

@ -26,7 +26,7 @@
#include "config.h"
#include "compositor.h"
#include <libweston/libweston.h>
#include <errno.h>
#include <fcntl.h>

@ -25,7 +25,7 @@
#include "config.h"
#include "compositor.h"
#include <libweston/libweston.h>
struct weston_launcher;

@ -38,7 +38,7 @@
#include <systemd/sd-login.h>
#include <unistd.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "dbus.h"
#include "launcher-impl.h"

@ -26,7 +26,7 @@
#include "config.h"
#include "compositor.h"
#include <libweston/libweston.h>
#include "launcher-util.h"
#include "launcher-impl.h"

@ -28,7 +28,7 @@
#include "config.h"
#include "compositor.h"
#include <libweston/libweston.h>
struct weston_launcher;

@ -44,7 +44,7 @@
#include <linux/kd.h>
#include <linux/major.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "weston-launch.h"
#include "launcher-impl.h"

@ -38,7 +38,7 @@
#include <assert.h>
#include <libinput.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "libinput-device.h"
#include "shared/helpers.h"
#include "shared/timespec-util.h"

@ -33,7 +33,7 @@
#include <libinput.h>
#include <stdbool.h>
#include "compositor.h"
#include <libweston/libweston.h>
enum evdev_device_seat_capability {
EVDEV_SEAT_POINTER = (1 << 0),

@ -34,7 +34,7 @@
#include <libinput.h>
#include <libudev.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "launcher-util.h"
#include "libinput-seat.h"
#include "libinput-device.h"

@ -31,7 +31,7 @@
#include <libudev.h>
#include "compositor.h"
#include <libweston/libweston.h>
struct libinput_device;

@ -30,7 +30,7 @@
#include <unistd.h>
#include <sys/types.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "linux-dmabuf.h"
#include "linux-dmabuf-unstable-v1-server-protocol.h"

@ -28,7 +28,7 @@
#include <assert.h>
#include <inttypes.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "linux-explicit-synchronization.h"
#include "linux-explicit-synchronization-unstable-v1-server-protocol.h"
#include "linux-sync-file.h"

@ -34,7 +34,7 @@
#include <wayland-util.h>
#include "compositor.h"
#include <libweston/libweston.h>
static int
default_log_handler(const char *fmt, va_list ap);

@ -57,7 +57,6 @@ srcs_libweston = [
]
install_headers(
'compositor.h',
'plugin-registry.h',
'windowed-output-api.h',
'../shared/config-parser.h',

@ -28,7 +28,7 @@
#include <stdint.h>
#include <stdlib.h>
#include "compositor.h"
#include <libweston/libweston.h>
static int
noop_renderer_read_pixels(struct weston_output *output,

@ -25,7 +25,7 @@
#include "config.h"
#include "compositor.h"
#include <libweston/libweston.h>
int
pixman_renderer_init(struct weston_compositor *ec);

@ -29,7 +29,7 @@
#include <string.h>
#include <stdlib.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "plugin-registry.h"
struct weston_plugin_api {

@ -34,7 +34,7 @@
#include <unistd.h>
#include <sys/uio.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "shared/helpers.h"
#include "shared/timespec-util.h"

@ -28,7 +28,7 @@
#include "config.h"
#include "compositor.h"
#include <libweston/libweston.h>
#include "shared/timespec-util.h"
WL_EXPORT void

@ -33,7 +33,7 @@
#include <assert.h>
#include "timeline.h"
#include "compositor.h"
#include <libweston/libweston.h>
#include "file-util.h"
struct timeline_log {

@ -33,7 +33,7 @@
#include "shared/string-helpers.h"
#include "shared/zalloc.h"
#include "shared/timespec-util.h"
#include "compositor.h"
#include <libweston/libweston.h>
#include "weston-touch-calibration-server-protocol.h"

@ -45,7 +45,7 @@
#include <va/va_enc_h264.h>
#include <va/va_vpp.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "vaapi-recorder.h"
#define NAL_REF_IDC_NONE 0

@ -28,7 +28,7 @@
#include "weston-debug.h"
#include "helpers.h"
#include "compositor.h"
#include <libweston/libweston.h>
#include "weston-debug-server-protocol.h"

@ -30,7 +30,7 @@
#include <stdlib.h>
#include <stdbool.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "text-cursor-position-server-protocol.h"
#include "shared/helpers.h"

@ -28,7 +28,7 @@
#ifndef REMOTING_PLUGIN_H
#define REMOTING_PLUGIN_H
#include "compositor.h"
#include <libweston/libweston.h>
#include "plugin-registry.h"
#define WESTON_REMOTING_API_NAME "weston_remoting_api_v1"

@ -32,7 +32,7 @@
#include <stdbool.h>
#include <stdint.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor/weston.h"
#include "ivi-shell/ivi-layout-export.h"
#include "ivi-shell/ivi-layout-private.h"

@ -34,7 +34,7 @@
#include <assert.h>
#include <limits.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor/weston.h"
#include "weston-test-server-protocol.h"
#include "ivi-test.h"

@ -27,7 +27,7 @@
#include <assert.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor/weston.h"
#include "plugin-registry.h"

@ -28,7 +28,7 @@
#include <assert.h>
#include <stdint.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor/weston.h"
static void

@ -33,7 +33,7 @@
#include <errno.h>
#include <linux/input.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor/weston.h"
#include "file-util.h"

@ -28,7 +28,7 @@
#include <stdio.h>
#include <assert.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor/weston.h"
static void

@ -32,7 +32,7 @@
#include <unistd.h>
#include <string.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor/weston.h"
#include "weston-test-server-protocol.h"

@ -37,7 +37,7 @@
#include <signal.h>
#include <X11/Xcursor/Xcursor.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "xwayland.h"
#include "cairo-util.h"

@ -41,7 +41,7 @@
#include <X11/Xcursor/Xcursor.h>
#include <linux/input.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "xwayland.h"
#include "xwayland-internal-interface.h"

@ -30,7 +30,7 @@
#include <xcb/composite.h>
#include <cairo/cairo-xcb.h>
#include "compositor.h"
#include <libweston/libweston.h>
#include "compositor/weston.h"
#include "xwayland-api.h"
#include "weston-debug.h"

Loading…
Cancel
Save