diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2010-05-27 02:20:29 +0200 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2010-05-27 02:20:29 +0200 |
commit | 441dae4a44f60665c9f669a80304b688285c9c22 (patch) | |
tree | 572d08dfeeac1e2a4d737513d9e6c8daa4b0f343 /src/gamma-randr.h | |
parent | Let gamma methods and location providers print help on option parameters. (diff) | |
download | redshift-ng-441dae4a44f60665c9f669a80304b688285c9c22.tar.gz redshift-ng-441dae4a44f60665c9f669a80304b688285c9c22.tar.bz2 redshift-ng-441dae4a44f60665c9f669a80304b688285c9c22.tar.xz |
Split init function of methods and providers into init and start.
The set_option function can be called to set options between init
and start.
Diffstat (limited to 'src/gamma-randr.h')
-rw-r--r-- | src/gamma-randr.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gamma-randr.h b/src/gamma-randr.h index c51c911..4ccad8f 100644 --- a/src/gamma-randr.h +++ b/src/gamma-randr.h @@ -38,15 +38,21 @@ typedef struct { typedef struct { xcb_connection_t *conn; xcb_screen_t *screen; + int preferred_screen; + int screen_num; int crtc_num; unsigned int crtc_count; randr_crtc_state_t *crtcs; } randr_state_t; -int randr_init(randr_state_t *state, char *args); +int randr_init(randr_state_t *state); +int randr_start(randr_state_t *state); void randr_free(randr_state_t *state); + void randr_print_help(FILE *f); +int randr_set_option(randr_state_t *state, const char *key, const char *value); + void randr_restore(randr_state_t *state); int randr_set_temperature(randr_state_t *state, int temp, float gamma[3]); |