aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/methods.h
blob: e7f53ab0fb9c1095b2bde0fff42404111a5448e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* See LICENSE file for copyright and license details. */
#ifndef LIBGAMMA_TEST_METHODS_H
#define LIBGAMMA_TEST_METHODS_H


#include <libgamma.h>

#include <stdio.h>
#include <stdlib.h>


#ifndef __GCC__
# define __attribute__(x)
#endif


/**
 * 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