aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/methods.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-04 20:09:26 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-04 20:09:26 +0200
commite42580e65a3fa5cadb87c5d7e18cd9d94585d853 (patch)
tree2ae3c2d824e0549dc92a9f123d14c3a162a41de9 /src/test/methods.h
parentadd inclusion guard to update-warnings.h (diff)
downloadlibgamma-e42580e65a3fa5cadb87c5d7e18cd9d94585d853.tar.gz
libgamma-e42580e65a3fa5cadb87c5d7e18cd9d94585d853.tar.bz2
libgamma-e42580e65a3fa5cadb87c5d7e18cd9d94585d853.tar.xz
split out and doc adjustment method functions from test.c
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/test/methods.h')
-rw-r--r--src/test/methods.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/src/test/methods.h b/src/test/methods.h
new file mode 100644
index 0000000..fcce69b
--- /dev/null
+++ b/src/test/methods.h
@@ -0,0 +1,69 @@
+/**
+ * libgamma — Display server abstraction layer for gamma ramp adjustments
+ * Copyright © 2014 Mattias Andrée (maandree@member.fsf.org)
+ *
+ * This library is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+#ifndef LIBGAMMA_TEST_METHODS_H
+#define LIBGAMMA_TEST_METHODS_H
+
+
+/**
+ * Get the name representation of an
+ * adjustment method by its identifier.
+ *
+ * @param method The identifier of the adjustment method.
+ * @return The name of the adjustment method, should not be `free`:d.
+ */
+const char* method_name(int method) __attribute__((const));
+
+/**
+ * Print a list of adjustment methods.
+ *
+ * @param description Precursory text for the list.
+ * @param methods An array allocated to fit all adjustment methods.
+ * @param operation See the `operation` parameter for `libgamma_list_methods`.
+ */
+void list_methods(const char* description, int* methods, int operation);
+
+/**
+ * Print all lists, of adjustments methods, that
+ * are made available by `libgamma_list_methods`.
+ */
+void list_methods_lists(void);
+
+/**
+ * Test the availability (determined
+ * at compile-time) of all adjustment
+ * methods and one that does not exist.
+ */
+void method_availability(void);
+
+/**
+ * List the default site and the environment
+ * variable, if any, that determines the
+ * default site, for all availiable adjustment
+ * methods.
+ */
+void list_default_sites(void);
+
+/**
+ * Print the capabilities of all availiable
+ * adjustment methods.
+ */
+void method_capabilities(void);
+
+
+#endif
+