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-dummy.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 '')
-rw-r--r-- | method-dummy.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/method-dummy.h b/method-dummy.h index d6c5488..9fa1df6 100644 --- a/method-dummy.h +++ b/method-dummy.h @@ -2,6 +2,7 @@ #if !defined(LIBGAMMA_DUMMY_GET_RAMPS) && !defined(LIBGAMMA_DUMMY_SET_RAMPS) +#ifdef IN_LIBGAMMA_DUMMY /** * Configuration set for the dummy adjustment method */ @@ -182,6 +183,7 @@ typedef struct libgamma_dummy_site { * Configurations for the dummy adjustment method */ extern libgamma_dummy_configurations_t libgamma_dummy_internal_configurations; +#endif @@ -440,6 +442,7 @@ int libgamma_dummy_crtc_set_gamma_rampsd(libgamma_crtc_state_t *restrict, const +#ifdef IN_LIBGAMMA_DUMMY /** * Restore the gamma ramps for a CRTC to the system settings for that CRTC * and ignore the method's capabilities @@ -450,6 +453,7 @@ int libgamma_dummy_crtc_set_gamma_rampsd(libgamma_crtc_state_t *restrict, const */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__))) int libgamma_dummy_internal_crtc_restore_forced(libgamma_dummy_crtc_t *restrict); +#endif #else |