From cb5d1b44d7c23b0ab77621fb237a3b213372f6ad Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 31 May 2014 04:57:00 +0200 Subject: add libgamma_is_method_available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libgamma-facade.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/libgamma-facade.h') diff --git a/src/libgamma-facade.h b/src/libgamma-facade.h index db5075b..fdf46ae 100644 --- a/src/libgamma-facade.h +++ b/src/libgamma-facade.h @@ -92,6 +92,15 @@ typedef double libgamma_gamma_rampsd_fun(double encoding); */ size_t libgamma_list_methods(int* restrict methods, size_t buf_size, int operation); +/** + * Check whether an adjustment method is available, non-existing (invalid) methods will be + * identified as not available under the rationale that the library may be out of date. + * + * @param method The adjustment method. + * @return Whether the adjustment method is available. + */ +int libgamma_is_method_available(int method) __attribute__((const)); + /** * Return the capabilities of an adjustment method. * -- cgit v1.2.3-70-g09d2