aboutsummaryrefslogblamecommitdiffstats
path: root/legacy.c
blob: c53a3fef22236969e40b99292fae31ccd8c90852 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                         

                                    







                                                                                               

                                                                                                                   




































                                                                                                     













                                                                                                                               
/* See LICENSE file for copyright and license details. */
#include "common.h"

#undef libgamma_crtc_set_gamma_ramps8
#undef libgamma_crtc_set_gamma_ramps16
#undef libgamma_crtc_set_gamma_ramps32
#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);
int libgamma_crtc_set_gamma_ramps16(libgamma_crtc_state_t *restrict, libgamma_gamma_ramps16_t);
int libgamma_crtc_set_gamma_ramps32(libgamma_crtc_state_t *restrict, libgamma_gamma_ramps32_t);
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
libgamma_crtc_set_gamma_ramps8(libgamma_crtc_state_t *restrict this, libgamma_gamma_ramps8_t ramps)
{
	return libgamma_crtc_set_gamma_ramps8__new(this, &ramps);
}

int
libgamma_crtc_set_gamma_ramps16(libgamma_crtc_state_t *restrict this, libgamma_gamma_ramps16_t ramps)
{
	return libgamma_crtc_set_gamma_ramps16__new(this, &ramps);
}

int
libgamma_crtc_set_gamma_ramps32(libgamma_crtc_state_t *restrict this, libgamma_gamma_ramps32_t ramps)
{
	return libgamma_crtc_set_gamma_ramps32__new(this, &ramps);
}

int
libgamma_crtc_set_gamma_ramps64(libgamma_crtc_state_t *restrict this, libgamma_gamma_ramps64_t ramps)
{
	return libgamma_crtc_set_gamma_ramps64__new(this, &ramps);
}

int
libgamma_crtc_set_gamma_rampsf(libgamma_crtc_state_t *restrict this, libgamma_gamma_rampsf_t ramps)
{
	return libgamma_crtc_set_gamma_rampsf__new(this, &ramps);
}

int
libgamma_crtc_set_gamma_rampsd(libgamma_crtc_state_t *restrict this, libgamma_gamma_rampsd_t ramps)
{
	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);
}