aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcoopgamma.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-04 01:15:35 +0200
committerMattias Andrée <maandree@kth.se>2016-08-04 01:15:35 +0200
commita2728d045a5a9ca442851639ad85d186451a0802 (patch)
tree8c0bd454570e5190b2f6ebb1b5247ac061f2a10d /src/libcoopgamma.c
parentFix bugs (diff)
downloadlibcoopgamma-a2728d045a5a9ca442851639ad85d186451a0802.tar.gz
libcoopgamma-a2728d045a5a9ca442851639ad85d186451a0802.tar.bz2
libcoopgamma-a2728d045a5a9ca442851639ad85d186451a0802.tar.xz
Prepare for supporting the update to get-gamma-info: colourspace information
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/libcoopgamma.c')
-rw-r--r--src/libcoopgamma.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/libcoopgamma.c b/src/libcoopgamma.c
index 1beeb8a..726ee8c 100644
--- a/src/libcoopgamma.c
+++ b/src/libcoopgamma.c
@@ -410,12 +410,23 @@ size_t libcoopgamma_crtc_info_marshal(const libcoopgamma_crtc_info_t* restrict t
marshal_version(LIBCOOPGAMMA_CRTC_INFO_VERSION);
marshal_version(LIBCOOPGAMMA_DEPTH_VERSION);
marshal_version(LIBCOOPGAMMA_SUPPORT_VERSION);
+ marshal_version(LIBCOOPGAMMA_COLOURSPACE_VERSION);
marshal_prim(this->cooperative, int);
marshal_prim(this->depth, libcoopgamma_depth_t);
marshal_prim(this->red_size, size_t);
marshal_prim(this->green_size, size_t);
marshal_prim(this->blue_size, size_t);
marshal_prim(this->supported, libcoopgamma_support_t);
+ marshal_prim(this->colourspace, libcoopgamma_colourspace_t);
+ marshal_prim(this->have_gamut, int);
+ marshal_prim(this->red_x, unsigned);
+ marshal_prim(this->red_y, unsigned);
+ marshal_prim(this->green_x, unsigned);
+ marshal_prim(this->green_y, unsigned);
+ marshal_prim(this->blue_x, unsigned);
+ marshal_prim(this->blue_y, unsigned);
+ marshal_prim(this->white_x, unsigned);
+ marshal_prim(this->white_y, unsigned);
MARSHAL_EPILOGUE;
}
@@ -436,12 +447,23 @@ int libcoopgamma_crtc_info_unmarshal(libcoopgamma_crtc_info_t* restrict this,
unmarshal_version(LIBCOOPGAMMA_CRTC_INFO_VERSION);
unmarshal_version(LIBCOOPGAMMA_DEPTH_VERSION);
unmarshal_version(LIBCOOPGAMMA_SUPPORT_VERSION);
+ unmarshal_version(LIBCOOPGAMMA_COLOURSPACE_VERSION);
unmarshal_prim(this->cooperative, int);
unmarshal_prim(this->depth, libcoopgamma_depth_t);
unmarshal_prim(this->red_size, size_t);
unmarshal_prim(this->green_size, size_t);
unmarshal_prim(this->blue_size, size_t);
unmarshal_prim(this->supported, libcoopgamma_support_t);
+ unmarshal_prim(this->colourspace, libcoopgamma_colourspace_t);
+ unmarshal_prim(this->have_gamut, int);
+ unmarshal_prim(this->red_x, unsigned);
+ unmarshal_prim(this->red_y, unsigned);
+ unmarshal_prim(this->green_x, unsigned);
+ unmarshal_prim(this->green_y, unsigned);
+ unmarshal_prim(this->blue_x, unsigned);
+ unmarshal_prim(this->blue_y, unsigned);
+ unmarshal_prim(this->white_x, unsigned);
+ unmarshal_prim(this->white_y, unsigned);
UNMARSHAL_EPILOGUE;
}