From b1ab322cb5d40aac8d7b10bcb1fdf9994103a3ee Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Mon, 24 May 2010 20:06:14 +0200 Subject: Move gamma method spec structs to redshift.h --- src/redshift.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/redshift.c') diff --git a/src/redshift.c b/src/redshift.c index 430c732..c39c033 100644 --- a/src/redshift.c +++ b/src/redshift.c @@ -80,6 +80,7 @@ typedef union { #endif } gamma_state_t; + /* Enum of gamma adjustment methods */ typedef enum { GAMMA_METHOD_RANDR, @@ -88,20 +89,6 @@ typedef enum { GAMMA_METHOD_MAX } gamma_method_t; -typedef int gamma_method_init_func(void *state, int screen_num, int crtc_num); -typedef void gamma_method_free_func(void *state); -typedef void gamma_method_restore_func(void *state); -typedef int gamma_method_set_temperature_func(void *state, int temp, - float gamma[3]); - -typedef struct { - char *name; - gamma_method_init_func *init; - gamma_method_free_func *free; - gamma_method_restore_func *restore; - gamma_method_set_temperature_func *set_temperature; -} gamma_method_spec_t; - /* Gamma adjustment method structs */ static const gamma_method_spec_t gamma_methods[] = { -- cgit v1.2.3-70-g09d2