aboutsummaryrefslogtreecommitdiffstats
path: root/method-x-randr.h
diff options
context:
space:
mode:
Diffstat (limited to 'method-x-randr.h')
-rw-r--r--method-x-randr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/method-x-randr.h b/method-x-randr.h
index e331912..12dda92 100644
--- a/method-x-randr.h
+++ b/method-x-randr.h
@@ -86,6 +86,16 @@ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__)))
void libgamma_x_randr_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__)))
+int libgamma_x_randr_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