diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2020-10-05 12:13:07 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2020-10-05 12:38:19 +0200 |
commit | ff379fb93ae2539bf9fae70ccc8e0351e5665fb0 (patch) | |
tree | dc2004950e9d1f7065ed0df0111241c12ad96902 | |
parent | 505b3481cd7ff7e885e0ab2e1fcca830729f1b18 (diff) | |
download | mutter-wip/carlosg/dont-pull-generated-headers.tar.gz |
backend: Don't pull generated headers (indirectly)wip/carlosg/dont-pull-generated-headers
Use a typedef for MetaRemoteDesktop, so tests poking MetaBackend don't
indirectly depend upon generated headers. This is arguably a code fix
for a build system bug.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1470
Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1449
(or something...)
-rw-r--r-- | src/backends/meta-backend-private.h | 4 | ||||
-rw-r--r-- | src/backends/meta-backend-types.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/backends/meta-backend-private.h b/src/backends/meta-backend-private.h index 6d7d3ad75..5f4981fda 100644 --- a/src/backends/meta-backend-private.h +++ b/src/backends/meta-backend-private.h @@ -42,10 +42,6 @@ #include "backends/meta-settings-private.h" #include "core/util-private.h" -#ifdef HAVE_REMOTE_DESKTOP -#include "backends/meta-remote-desktop.h" -#endif - #define DEFAULT_XKB_RULES_FILE "evdev" #define DEFAULT_XKB_MODEL "pc105+inet" diff --git a/src/backends/meta-backend-types.h b/src/backends/meta-backend-types.h index 4753c0744..146a8c3d7 100644 --- a/src/backends/meta-backend-types.h +++ b/src/backends/meta-backend-types.h @@ -59,4 +59,8 @@ typedef struct _MetaScreenCastStream MetaScreenCastStream; typedef struct _MetaWaylandCompositor MetaWaylandCompositor; +#ifdef HAVE_REMOTE_DESKTOP +typedef struct _MetaRemoteDesktop MetaRemoteDesktop; +#endif + #endif /* META_BACKEND_TYPE_H */ |