aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma_GammaRamps.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-05 00:32:17 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-05 00:32:17 +0200
commit45c7ac6b8bed33fdbbcd3a2a497af5dcc6eafdc8 (patch)
tree7bad7421c6ea20aa94e11dbf907ea550a290e137 /src/libgamma_GammaRamps.c
parentadd documation to .c files (diff)
downloadjlibgamma-45c7ac6b8bed33fdbbcd3a2a497af5dcc6eafdc8.tar.gz
jlibgamma-45c7ac6b8bed33fdbbcd3a2a497af5dcc6eafdc8.tar.bz2
jlibgamma-45c7ac6b8bed33fdbbcd3a2a497af5dcc6eafdc8.tar.xz
add names to the parameters in the .c files
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/libgamma_GammaRamps.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/libgamma_GammaRamps.c b/src/libgamma_GammaRamps.c
index 2a12e82..571006a 100644
--- a/src/libgamma_GammaRamps.c
+++ b/src/libgamma_GammaRamps.c
@@ -18,6 +18,10 @@
#include "libgamma_GammaRamps.h"
+#define J JNIEnv* env, jclass class
+
+
+
/**
* Create and initialise a gamma ramp in the proper way that allows all adjustment
* methods to read from and write to it without causing segmentation violation.
@@ -31,7 +35,7 @@
* Element 3: The address of the blue gamma ramp.
* Element 4: Zero on success, an error code on error.
*/
-jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1ramps8_1create(JNIEnv *, jclass, jint, jint, jint);
+jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1ramps8_1create(J, jint red_size, jint green_size, jint blue_size);
/**
@@ -47,7 +51,7 @@ jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1ramps8_1create(JNIEnv *, jc
* Element 3: The address of the blue gamma ramp.
* Element 4: Zero on success, an error code on error.
*/
-jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1ramps16_1create(JNIEnv *, jclass, jint, jint, jint);
+jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1ramps16_1create(J, jint red_size, jint green_size, jint blue_size);
/**
@@ -63,7 +67,7 @@ jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1ramps16_1create(JNIEnv *, j
* Element 3: The address of the blue gamma ramp.
* Element 4: Zero on success, an error code on error.
*/
-jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1ramps32_1create(JNIEnv *, jclass, jint, jint, jint);
+jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1ramps32_1create(J, jint red_size, jint green_size, jint blue_size);
/**
@@ -79,7 +83,7 @@ jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1ramps32_1create(JNIEnv *, j
* Element 3: The address of the blue gamma ramp.
* Element 4: Zero on success, an error code on error.
*/
-jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1ramps64_1create(JNIEnv *, jclass, jint, jint, jint);
+jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1ramps64_1create(J, jint red_size, jint green_size, jint blue_size);
/**
@@ -95,7 +99,7 @@ jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1ramps64_1create(JNIEnv *, j
* Element 3: The address of the blue gamma ramp.
* Element 4: Zero on success, an error code on error.
*/
-jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1rampsf_1create(JNIEnv *, jclass, jint, jint, jint);
+jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1rampsf_1create(J, jint red_size, jint green_size, jint blue_size);
/**
@@ -111,7 +115,7 @@ jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1rampsf_1create(JNIEnv *, jc
* Element 3: The address of the blue gamma ramp.
* Element 4: Zero on success, an error code on error.
*/
-jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1rampsd_1create(JNIEnv *, jclass, jint, jint, jint);
+jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1rampsd_1create(J, jint red_size, jint green_size, jint blue_size);
@@ -123,7 +127,7 @@ jlongArray Java_libgamma_GammaRamps_libgamma_1gamma_1rampsd_1create(JNIEnv *, jc
*
* @param address The gamma ramps.
*/
-void Java_libgamma_GammaRamps_libgamma_1gamma_1ramps8_1free(JNIEnv *, jclass, jlong);
+void Java_libgamma_GammaRamps_libgamma_1gamma_1ramps8_1free(J, jlong address);
/**
@@ -134,7 +138,7 @@ void Java_libgamma_GammaRamps_libgamma_1gamma_1ramps8_1free(JNIEnv *, jclass, jl
*
* @param address The gamma ramps.
*/
-void Java_libgamma_GammaRamps_libgamma_1gamma_1ramps16_1free(JNIEnv *, jclass, jlong);
+void Java_libgamma_GammaRamps_libgamma_1gamma_1ramps16_1free(J, jlong address);
/**
@@ -145,7 +149,7 @@ void Java_libgamma_GammaRamps_libgamma_1gamma_1ramps16_1free(JNIEnv *, jclass, j
*
* @param address The gamma ramps.
*/
-void Java_libgamma_GammaRamps_libgamma_1gamma_1ramps32_1free(JNIEnv *, jclass, jlong);
+void Java_libgamma_GammaRamps_libgamma_1gamma_1ramps32_1free(J, jlong address);
/**
@@ -156,7 +160,7 @@ void Java_libgamma_GammaRamps_libgamma_1gamma_1ramps32_1free(JNIEnv *, jclass, j
*
* @param address The gamma ramps.
*/
-void Java_libgamma_GammaRamps_libgamma_1gamma_1ramps64_1free(JNIEnv *, jclass, jlong);
+void Java_libgamma_GammaRamps_libgamma_1gamma_1ramps64_1free(J, jlong address);
/**
@@ -167,7 +171,7 @@ void Java_libgamma_GammaRamps_libgamma_1gamma_1ramps64_1free(JNIEnv *, jclass, j
*
* @param address The gamma ramps.
*/
-void Java_libgamma_GammaRamps_libgamma_1gamma_1rampsf_1free(JNIEnv *, jclass, jlong);
+void Java_libgamma_GammaRamps_libgamma_1gamma_1rampsf_1free(J, jlong address);
/**
@@ -178,5 +182,5 @@ void Java_libgamma_GammaRamps_libgamma_1gamma_1rampsf_1free(JNIEnv *, jclass, jl
*
* @param address The gamma ramps.
*/
-void Java_libgamma_GammaRamps_libgamma_1gamma_1rampsd_1free(JNIEnv *, jclass, jlong);
+void Java_libgamma_GammaRamps_libgamma_1gamma_1rampsd_1free(J, jlong address);