aboutsummaryrefslogtreecommitdiffstats
path: root/src/redshift.c
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2010-05-24 20:06:14 +0200
committerJon Lund Steffensen <jonlst@gmail.com>2010-05-24 20:06:14 +0200
commitb1ab322cb5d40aac8d7b10bcb1fdf9994103a3ee (patch)
tree56be734d985da7dc241733615edcb328d1e56972 /src/redshift.c
parentDon't include gettext headers when NLS is disabled. (diff)
downloadredshift-ng-b1ab322cb5d40aac8d7b10bcb1fdf9994103a3ee.tar.gz
redshift-ng-b1ab322cb5d40aac8d7b10bcb1fdf9994103a3ee.tar.bz2
redshift-ng-b1ab322cb5d40aac8d7b10bcb1fdf9994103a3ee.tar.xz
Move gamma method spec structs to redshift.h
Diffstat (limited to 'src/redshift.c')
-rw-r--r--src/redshift.c15
1 files changed, 1 insertions, 14 deletions
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[] = {