blob: 70c152279219cc677812f245716eeb059d74a4fc (
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
|
/* See LICENSE file for copyright and license details. */
#include "common.h"
/**
* Get the file descriptor used to communicate with the display server
*
* @param this The site state
* @return The file descriptor, or -1 if the adjustment method does not
* use a file descriptor to communicate with the display server
*/
int
libgamma_get_fd(struct libgamma_site_state *restrict this)
{
switch (this->method) {
#define X(CONST, CNAME, ...)\
case CONST:\
return libgamma_##CNAME##_get_fd(this);
LIST_AVAILABLE_METHODS(X)
#undef X
default:
return -1;
}
}
|