From 6421c8217b38d7b5605c652b89793b2de0192d91 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 20 Nov 2026 15:45:17 +0100 Subject: Add libgamma_get_fd and fix some minor issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- method-quartz-cg.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'method-quartz-cg.h') diff --git a/method-quartz-cg.h b/method-quartz-cg.h index e37e3e4..3619f64 100644 --- a/method-quartz-cg.h +++ b/method-quartz-cg.h @@ -42,6 +42,16 @@ int libgamma_quartz_cg_site_initialise(struct libgamma_site_state *restrict, cha LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__))) void libgamma_quartz_cg_site_destroy(struct libgamma_site_state *restrict); +/** + * 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 + */ +LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__, __const__))) +int libgamma_quartz_cg_get_fd(struct libgamma_site_state *restrict); + /** * Restore the gamma ramps all CRTC:s with a site to the system settings * -- cgit v1.3.1