aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma_Site.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-05 00:24:04 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-05 00:24:04 +0200
commit49ff4974eaa9b3a5f2eccbfda2bb2315b8ead32c (patch)
treeb4d08ab3c48346f50eb63b4d9db27acc24dd0f94 /src/libgamma_Site.c
parentmakefile can build library + add .c files with all prototypes (diff)
downloadjlibgamma-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.c25
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);