aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma_Partition.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_Partition.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_Partition.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libgamma_Partition.c b/src/libgamma_Partition.c
index b7baebd..8350ab7 100644
--- a/src/libgamma_Partition.c
+++ b/src/libgamma_Partition.c
@@ -18,6 +18,10 @@
#include "libgamma_Partition.h"
+#define J JNIEnv* env, jclass class
+
+
+
/**
* Create a partition state.
*
@@ -27,7 +31,7 @@
* Element 1: The value for {@link #crtcs_available}
* Element 2: Error code, zero on success.
*/
-jlongArray Java_libgamma_Partition_libgamma_1partition_1create(JNIEnv *, jclass, jlong, jint);
+jlongArray Java_libgamma_Partition_libgamma_1partition_1create(J, jlong site, jint partition);
/**
@@ -36,7 +40,7 @@ jlongArray Java_libgamma_Partition_libgamma_1partition_1create(JNIEnv *, jclass,
*
* @param address The partition state.
*/
-void Java_libgamma_Partition_libgamma_1partition_1free(JNIEnv *, jclass, jlong);
+void Java_libgamma_Partition_libgamma_1partition_1free(J, jlong address);
/**
@@ -45,5 +49,5 @@ void Java_libgamma_Partition_libgamma_1partition_1free(JNIEnv *, jclass, jlong);
* @param address The partition state.
* @return Zero on success, and error code on failure.
*/
-jint Java_libgamma_Partition_libgamma_1partition_1restore(JNIEnv *, jclass, jlong);
+jint Java_libgamma_Partition_libgamma_1partition_1restore(J, jlong address);