aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/libgamma-facade.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-01 21:30:28 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-01 21:30:28 +0200
commitd7a1ff73731bb5244570394a23e56b575e9e82c3 (patch)
treeab682403173d6946109f5079fbfc9a0c21b8a7f6 /src/lib/libgamma-facade.h
parentUse gpp in libgamma-facade (diff)
downloadlibgamma-d7a1ff73731bb5244570394a23e56b575e9e82c3.tar.gz
libgamma-d7a1ff73731bb5244570394a23e56b575e9e82c3.tar.bz2
libgamma-d7a1ff73731bb5244570394a23e56b575e9e82c3.tar.xz
m + reduce code duplication
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/lib/libgamma-facade.h50
1 files changed, 30 insertions, 20 deletions
diff --git a/src/lib/libgamma-facade.h b/src/lib/libgamma-facade.h
index fdf46ae..90019b3 100644
--- a/src/lib/libgamma-facade.h
+++ b/src/lib/libgamma-facade.h
@@ -435,10 +435,12 @@ int libgamma_crtc_set_gamma_rampsd(libgamma_crtc_state_t* restrict this,
*
* Note that this will probably involve the library allocating temporary data.
*
- * @param this The CRTC state.
- * @param ramps The gamma ramps to apply.
- * @return Zero on success, otherwise (negative) the value of an
- * error identifier provided by this library.
+ * @param this The CRTC state.
+ * @param red_function The function that generates the the gamma ramp for the red channel.
+ * @param green_function The function that generates the the gamma ramp for the green channel.
+ * @param blue_function The function that generates the the gamma ramp for the blue channel.
+ * @return Zero on success, otherwise (negative) the value of an
+ * error identifier provided by this library.
*/
int libgamma_crtc_set_gamma_ramps_f(libgamma_crtc_state_t* restrict this,
libgamma_gamma_ramps_fun* red_function,
@@ -450,10 +452,12 @@ int libgamma_crtc_set_gamma_ramps_f(libgamma_crtc_state_t* restrict this,
*
* Note that this will probably involve the library allocating temporary data.
*
- * @param this The CRTC state.
- * @param ramps The gamma ramps to apply.
- * @return Zero on success, otherwise (negative) the value of an
- * error identifier provided by this library.
+ * @param this The CRTC state.
+ * @param red_function The function that generates the the gamma ramp for the red channel.
+ * @param green_function The function that generates the the gamma ramp for the green channel.
+ * @param blue_function The function that generates the the gamma ramp for the blue channel.
+ * @return Zero on success, otherwise (negative) the value of an
+ * error identifier provided by this library.
*/
int libgamma_crtc_set_gamma_ramps32_f(libgamma_crtc_state_t* restrict this,
libgamma_gamma_ramps32_fun* red_function,
@@ -465,10 +469,12 @@ int libgamma_crtc_set_gamma_ramps32_f(libgamma_crtc_state_t* restrict this,
*
* Note that this will probably involve the library allocating temporary data.
*
- * @param this The CRTC state.
- * @param ramps The gamma ramps to apply.
- * @return Zero on success, otherwise (negative) the value of an
- * error identifier provided by this library.
+ * @param this The CRTC state.
+ * @param red_function The function that generates the the gamma ramp for the red channel.
+ * @param green_function The function that generates the the gamma ramp for the green channel.
+ * @param blue_function The function that generates the the gamma ramp for the blue channel.
+ * @return Zero on success, otherwise (negative) the value of an
+ * error identifier provided by this library.
*/
int libgamma_crtc_set_gamma_ramps64_f(libgamma_crtc_state_t* restrict this,
libgamma_gamma_ramps64_fun* red_function,
@@ -480,10 +486,12 @@ int libgamma_crtc_set_gamma_ramps64_f(libgamma_crtc_state_t* restrict this,
*
* Note that this will probably involve the library allocating temporary data.
*
- * @param this The CRTC state.
- * @param ramps The gamma ramps to apply.
- * @return Zero on success, otherwise (negative) the value of an
- * error identifier provided by this library.
+ * @param this The CRTC state.
+ * @param red_function The function that generates the the gamma ramp for the red channel.
+ * @param green_function The function that generates the the gamma ramp for the green channel.
+ * @param blue_function The function that generates the the gamma ramp for the blue channel.
+ * @return Zero on success, otherwise (negative) the value of an
+ * error identifier provided by this library.
*/
int libgamma_crtc_set_gamma_rampsf_f(libgamma_crtc_state_t* restrict this,
libgamma_gamma_rampsf_fun* red_function,
@@ -495,10 +503,12 @@ int libgamma_crtc_set_gamma_rampsf_f(libgamma_crtc_state_t* restrict this,
*
* Note that this will probably involve the library allocating temporary data.
*
- * @param this The CRTC state.
- * @param ramps The gamma ramps to apply.
- * @return Zero on success, otherwise (negative) the value of an
- * error identifier provided by this library.
+ * @param this The CRTC state.
+ * @param red_function The function that generates the the gamma ramp for the red channel.
+ * @param green_function The function that generates the the gamma ramp for the green channel.
+ * @param blue_function The function that generates the the gamma ramp for the blue channel.
+ * @return Zero on success, otherwise (negative) the value of an
+ * error identifier provided by this library.
*/
int libgamma_crtc_set_gamma_rampsd_f(libgamma_crtc_state_t* restrict this,
libgamma_gamma_rampsd_fun* red_function,