aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-quartz.c
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2017-10-11 20:57:29 -0700
committerJon Lund Steffensen <jonlst@gmail.com>2017-10-13 18:12:43 -0700
commit1d29f92349843851d26cc453598cbe3a3f4fd5f1 (patch)
tree4bc99decf721bdee01045744024fad38f49d09b3 /src/gamma-quartz.c
parentAllocate module data in init functions (diff)
downloadredshift-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-quartz.c')
-rw-r--r--src/gamma-quartz.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gamma-quartz.c b/src/gamma-quartz.c
index 6b7d1ec..2b04d8b 100644
--- a/src/gamma-quartz.c
+++ b/src/gamma-quartz.c
@@ -37,6 +37,19 @@
#include "colorramp.h"
+typedef struct {
+ CGDirectDisplayID display;
+ uint32_t ramp_size;
+ float *saved_ramps;
+} quartz_display_state_t;
+
+typedef struct {
+ quartz_display_state_t *displays;
+ uint32_t display_count;
+ int preserve;
+} quartz_state_t;
+
+
static int
quartz_init(quartz_state_t **state)
{