diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2017-10-11 20:57:29 -0700 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2017-10-13 18:12:43 -0700 |
commit | 1d29f92349843851d26cc453598cbe3a3f4fd5f1 (patch) | |
tree | 4bc99decf721bdee01045744024fad38f49d09b3 /src/gamma-randr.c | |
parent | Allocate module data in init functions (diff) | |
download | redshift-ng-1d29f92349843851d26cc453598cbe3a3f4fd5f1.tar.gz redshift-ng-1d29f92349843851d26cc453598cbe3a3f4fd5f1.tar.bz2 redshift-ng-1d29f92349843851d26cc453598cbe3a3f4fd5f1.tar.xz |
Move module structures out of headers
Diffstat (limited to 'src/gamma-randr.c')
-rw-r--r-- | src/gamma-randr.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gamma-randr.c b/src/gamma-randr.c index 44bd497..e35315b 100644 --- a/src/gamma-randr.c +++ b/src/gamma-randr.c @@ -42,6 +42,25 @@ #define RANDR_VERSION_MINOR 3 +typedef struct { + xcb_randr_crtc_t crtc; + unsigned int ramp_size; + uint16_t *saved_ramps; +} randr_crtc_state_t; + +typedef struct { + xcb_connection_t *conn; + xcb_screen_t *screen; + int preferred_screen; + int preserve; + int screen_num; + int crtc_num_count; + int* crtc_num; + unsigned int crtc_count; + randr_crtc_state_t *crtcs; +} randr_state_t; + + static int randr_init(randr_state_t **state) { |