diff options
Diffstat (limited to 'src/redshift.c')
-rw-r--r-- | src/redshift.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/redshift.c b/src/redshift.c index e4143fc..beecd35 100644 --- a/src/redshift.c +++ b/src/redshift.c @@ -53,6 +53,10 @@ #include "gamma-dummy.h" +#ifdef ENABLE_DRM +# include "gamma-drm.h" +#endif + #ifdef ENABLE_RANDR # include "gamma-randr.h" #endif @@ -75,6 +79,9 @@ /* Union of state data for gamma adjustment methods */ typedef union { +#ifdef ENABLE_DRM + drm_state_t drm; +#endif #ifdef ENABLE_RANDR randr_state_t randr; #endif @@ -89,6 +96,18 @@ typedef union { /* Gamma adjustment method structs */ static const gamma_method_t gamma_methods[] = { +#ifdef ENABLE_DRM + { + "drm", 0, + (gamma_method_init_func *)drm_init, + (gamma_method_start_func *)drm_start, + (gamma_method_free_func *)drm_free, + (gamma_method_print_help_func *)drm_print_help, + (gamma_method_set_option_func *)drm_set_option, + (gamma_method_restore_func *)drm_restore, + (gamma_method_set_temperature_func *)drm_set_temperature + }, +#endif #ifdef ENABLE_RANDR { "randr", 1, |