aboutsummaryrefslogtreecommitdiffstats
path: root/src/redshift.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/redshift.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/redshift.h b/src/redshift.h
index 3a87877..e8be4e6 100644
--- a/src/redshift.h
+++ b/src/redshift.h
@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License
along with Redshift. If not, see <http://www.gnu.org/licenses/>.
- Copyright (c) 2013 Jon Lund Steffensen <jonlst@gmail.com>
+ Copyright (c) 2013-2014 Jon Lund Steffensen <jonlst@gmail.com>
*/
#ifndef REDSHIFT_REDSHIFT_H
@@ -24,6 +24,14 @@
#include <stdlib.h>
+/* Color setting */
+typedef struct {
+ int temperature;
+ float gamma[3];
+ float brightness;
+} color_setting_t;
+
+
/* Gamma adjustment method */
typedef int gamma_method_init_func(void *state);
typedef int gamma_method_start_func(void *state);
@@ -32,9 +40,8 @@ typedef void gamma_method_print_help_func(FILE *f);
typedef int gamma_method_set_option_func(void *state, const char *key,
const char *value);
typedef void gamma_method_restore_func(void *state);
-typedef int gamma_method_set_temperature_func(void *state, int temp,
- float brightness,
- const float gamma[3]);
+typedef int gamma_method_set_temperature_func(void *state,
+ const color_setting_t *setting);
typedef struct {
char *name;