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_Site.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 '')
-rw-r--r-- | src/libgamma_Site.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/libgamma_Site.c b/src/libgamma_Site.c index da7fdd2..ba66c35 100644 --- a/src/libgamma_Site.c +++ b/src/libgamma_Site.c @@ -18,7 +18,32 @@ #include "libgamma_Site.h" +/** + * Create a site state. + * + * @param method The adjustment method (display server and protocol.) + * @param site The site identifier. + * @return Element 0: The value for {@link #address}. + * Element 1: The value for {@link #partitions_available} + * Element 2: Error code, zero on success. + */ jlongArray Java_libgamma_Site_libgamma_1site_1create(JNIEnv *, jclass, jint, jstring); + + +/** + * Release all resources held by a site state + * and free the site state pointer. + * + * @param address The site state. + */ void Java_libgamma_Site_libgamma_1site_1free(JNIEnv *, jclass, jlong); + + +/** + * Restore the gamma ramps all CRTC:s within a site to the system settings. + * + * @param address The site state. + * @return Zero on success, and error code on failure. + */ jint Java_libgamma_Site_libgamma_1site_1restore(JNIEnv *, jclass, jlong); |