diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-27 20:35:00 -0500 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-27 20:35:00 -0500 |
commit | 87cec6b3661d9367b1d59935a41d3eab2e32c5b3 (patch) | |
tree | 767475829fda9b9856532535e06dcb3ad02a5b32 /src/redshift.h | |
parent | redshift: Use double for interpolation function (diff) | |
parent | redshift: Simplify set_temperature by passing color_setting_t (diff) | |
download | redshift-ng-87cec6b3661d9367b1d59935a41d3eab2e32c5b3.tar.gz redshift-ng-87cec6b3661d9367b1d59935a41d3eab2e32c5b3.tar.bz2 redshift-ng-87cec6b3661d9367b1d59935a41d3eab2e32c5b3.tar.xz |
Merge branch 'color-settings-struct'
Diffstat (limited to '')
-rw-r--r-- | src/redshift.h | 15 |
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; |