aboutsummaryrefslogtreecommitdiffstats
path: root/method-linux-drm.h
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-11-20 15:45:17 +0100
committerMattias Andrée <m@maandree.se>2026-11-20 15:45:17 +0100
commit6421c8217b38d7b5605c652b89793b2de0192d91 (patch)
tree5234e86fc5d223be29e0751b0e6165d26ba12f55 /method-linux-drm.h
parentfix typo (diff)
downloadlibgamma-0518e06d4bc283d1087edb69934ff4ee77a29273.tar.gz
libgamma-0518e06d4bc283d1087edb69934ff4ee77a29273.tar.bz2
libgamma-0518e06d4bc283d1087edb69934ff4ee77a29273.tar.xz
Add libgamma_get_fd and fix some minor issuesHEAD0.9master
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'method-linux-drm.h')
-rw-r--r--method-linux-drm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/method-linux-drm.h b/method-linux-drm.h
index 9e98412..67f775d 100644
--- a/method-linux-drm.h
+++ b/method-linux-drm.h
@@ -65,6 +65,16 @@ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__)))
void libgamma_linux_drm_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_linux_drm_get_fd(struct libgamma_site_state *restrict);
+
+/**
* Restore the gamma ramps all CRTC:s with a site to the system settings
*
* @param this The site state