From 0d24c34d7fea73a0002a79e995f7c7f30b03a054 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 19 Dec 2016 08:14:23 +0100 Subject: Add coopgamma backend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/redshift.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/redshift.h') diff --git a/src/redshift.h b/src/redshift.h index bac8e34..91d9d0d 100644 --- a/src/redshift.h +++ b/src/redshift.h @@ -24,6 +24,15 @@ #include +/* Program modes. */ +typedef enum { + PROGRAM_MODE_CONTINUAL, + PROGRAM_MODE_ONE_SHOT, + PROGRAM_MODE_PRINT, + PROGRAM_MODE_RESET, + PROGRAM_MODE_MANUAL +} program_mode_t; + /* Location */ typedef struct { float lat; @@ -48,7 +57,7 @@ typedef struct { /* Gamma adjustment method */ typedef int gamma_method_init_func(void *state); -typedef int gamma_method_start_func(void *state); +typedef int gamma_method_start_func(void *state, program_mode_t mode); typedef void gamma_method_free_func(void *state); typedef void gamma_method_print_help_func(FILE *f); typedef int gamma_method_set_option_func(void *state, const char *key, -- cgit v1.2.3-70-g09d2