diff options
Diffstat (limited to '')
| -rw-r--r-- | libgamma_x_vidmode_get_fd.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libgamma_x_vidmode_get_fd.c b/libgamma_x_vidmode_get_fd.c new file mode 100644 index 0000000..656fcbc --- /dev/null +++ b/libgamma_x_vidmode_get_fd.c @@ -0,0 +1,16 @@ +/* See LICENSE file for copyright and license details. */ +#define IN_LIBGAMMA_X_VIDMODE +#include "common.h" + + +/** + * Get the file descriptor used to communicate with the display server + * + * @param this The site state + * @return The file descriptor + */ +int +libgamma_x_vidmode_get_fd(struct libgamma_site_state *restrict this) +{ + return ConnectionNumber((Display *)this->data); +} |
