diff options
author | Mattias Andrée <maandree@kth.se> | 2021-03-05 19:18:09 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-03-05 19:18:09 +0100 |
commit | 5879cf0c50cecded79224b5207be9a83c204ccad (patch) | |
tree | 248c8b03d86b1679cfdb42b4f274839a8f981272 /method-linux-drm.h | |
parent | Update todo (diff) | |
download | libgamma-5879cf0c50cecded79224b5207be9a83c204ccad.tar.gz libgamma-5879cf0c50cecded79224b5207be9a83c204ccad.tar.bz2 libgamma-5879cf0c50cecded79224b5207be9a83c204ccad.tar.xz |
Fix support for fake methods
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'method-linux-drm.h')
-rw-r--r-- | method-linux-drm.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/method-linux-drm.h b/method-linux-drm.h index 50da38e..b30341d 100644 --- a/method-linux-drm.h +++ b/method-linux-drm.h @@ -1,8 +1,8 @@ /* See LICENSE file for copyright and license details. */ -#include <xf86drm.h> -#include <xf86drmMode.h> - +#ifdef IN_LIBGAMMA_LINUX_DRM +# include <xf86drm.h> +# include <xf86drmMode.h> /** * Graphics card data for the Direct Rendering Manager adjustment method @@ -29,6 +29,7 @@ typedef struct libgamma_drm_card_data { drmModeEncoder **encoders; } libgamma_drm_card_data_t; +#endif @@ -172,6 +173,7 @@ int libgamma_linux_drm_crtc_set_gamma_ramps16(libgamma_crtc_state_t *restrict, c +#ifdef IN_LIBGAMMA_LINUX_DRM /** * Release all connectors and encoders * @@ -179,3 +181,4 @@ int libgamma_linux_drm_crtc_set_gamma_ramps16(libgamma_crtc_state_t *restrict, c */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__))) void libgamma_linux_drm_internal_release_connectors_and_encoders(libgamma_drm_card_data_t *restrict); +#endif |