diff options
Diffstat (limited to 'legacy.c')
-rw-r--r-- | legacy.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -7,6 +7,8 @@ #undef libgamma_crtc_set_gamma_ramps64 #undef libgamma_crtc_set_gamma_rampsf #undef libgamma_crtc_set_gamma_rampsd +#undef libgamma_get_crtc_information +#undef libgamma_method_capabilities int libgamma_crtc_set_gamma_ramps8(libgamma_crtc_state_t *restrict, libgamma_gamma_ramps8_t); @@ -15,6 +17,8 @@ int libgamma_crtc_set_gamma_ramps32(libgamma_crtc_state_t *restrict, libgamma_ga int libgamma_crtc_set_gamma_ramps64(libgamma_crtc_state_t *restrict, libgamma_gamma_ramps64_t); int libgamma_crtc_set_gamma_rampsf(libgamma_crtc_state_t *restrict, libgamma_gamma_rampsf_t); int libgamma_crtc_set_gamma_rampsd(libgamma_crtc_state_t *restrict, libgamma_gamma_rampsd_t); +int libgamma_get_crtc_information(libgamma_crtc_information_t *restrict, libgamma_crtc_state_t *restrict, int32_t); +int libgamma_method_capabilities(libgamma_method_capabilities_t *restrict, int); int @@ -52,3 +56,17 @@ libgamma_crtc_set_gamma_rampsd(libgamma_crtc_state_t *restrict this, libgamma_ga { return libgamma_crtc_set_gamma_rampsd__new(this, &ramps); } + +int +libgamma_get_crtc_information(libgamma_crtc_information_t *restrict this, libgamma_crtc_state_t *restrict crtc, int32_t fields) +{ + return libgamma_get_crtc_information__new(this, offsetof(libgamma_crtc_information_t, gamma_error) + + sizeof(this->gamma_error), crtc, (unsigned long long int)fields); +} + +int +libgamma_method_capabilities(libgamma_method_capabilities_t *restrict this, int method) +{ + const size_t size = (_Alignof(unsigned) > sizeof(int32_t) ? _Alignof(unsigned) : sizeof(int32_t)) + sizeof(unsigned); + return libgamma_method_capabilities__new(this, size, method); +} |