diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-09-05 00:24:04 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-09-05 00:24:04 +0200 |
commit | 49ff4974eaa9b3a5f2eccbfda2bb2315b8ead32c (patch) | |
tree | b4d08ab3c48346f50eb63b4d9db27acc24dd0f94 /src/libgamma_Partition.c | |
parent | makefile can build library + add .c files with all prototypes (diff) | |
download | jlibgamma-49ff4974eaa9b3a5f2eccbfda2bb2315b8ead32c.tar.gz jlibgamma-49ff4974eaa9b3a5f2eccbfda2bb2315b8ead32c.tar.bz2 jlibgamma-49ff4974eaa9b3a5f2eccbfda2bb2315b8ead32c.tar.xz |
add documation to .c files
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/libgamma_Partition.c')
-rw-r--r-- | src/libgamma_Partition.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/libgamma_Partition.c b/src/libgamma_Partition.c index 2228240..b7baebd 100644 --- a/src/libgamma_Partition.c +++ b/src/libgamma_Partition.c @@ -18,7 +18,32 @@ #include "libgamma_Partition.h" +/** + * Create a partition state. + * + * @param site The site state for the site that the partition belongs to. + * @param partition The index of the partition within the site. + * @return Element 0: The value for {@link #address}. + * 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); + + +/** + * Release all resources held by a partition state + * and free the partition state pointer. + * + * @param address The partition state. + */ void Java_libgamma_Partition_libgamma_1partition_1free(JNIEnv *, jclass, jlong); + + +/** + * Restore the gamma ramps all CRTC:s within a partition to the system settings. + * + * @param address The partition state. + * @return Zero on success, and error code on failure. + */ jint Java_libgamma_Partition_libgamma_1partition_1restore(JNIEnv *, jclass, jlong); |