summaryrefslogtreecommitdiff
path: root/randr/randrstr.h
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@jbarnes-t61.(none)>2008-03-06 13:47:44 -0800
committerJesse Barnes <jbarnes@jbarnes-t61.(none)>2008-03-06 13:50:58 -0800
commitca616b902b2c5d0f046c7a042c11f045479e373a (patch)
tree584864c7d618b4b5dcdd3d3fe967c2c26cc7f2cd /randr/randrstr.h
parent34b69e3bc0e6462eb60029fbcb4f5479494007a2 (diff)
Allow RandR get output property to call into drivers
In order to report accurate values to users of the RandR property interface, it's sometimes necessary to ask the driver to update the value (for example when backlight brightness changes without the server's knowledge, due to hotkey events or direct sysfs banging). This patch wires up the core server code with a new xf86CrtcFuncs callback, get_property, to allow for this. The new code is available under the RANDR_13_INTERFACE define, which in turn depends on the RANDR_12_INTERFACE code.
Diffstat (limited to 'randr/randrstr.h')
-rw-r--r--randr/randrstr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/randr/randrstr.h b/randr/randrstr.h
index e8358bc0c..3b48f5c2b 100644
--- a/randr/randrstr.h
+++ b/randr/randrstr.h
@@ -54,6 +54,7 @@
/* required for ABI compatibility for now */
#define RANDR_10_INTERFACE 1
#define RANDR_12_INTERFACE 1
+#define RANDR_13_INTERFACE 1 /* requires RANDR_12_INTERFACE */
typedef XID RRMode;
typedef XID RROutput;
@@ -175,6 +176,12 @@ typedef void (*RRModeDestroyProcPtr) (ScreenPtr pScreen,
#endif
+#if RANDR_13_INTERFACE
+typedef Bool (*RROutputGetPropertyProcPtr) (ScreenPtr pScreen,
+ RROutputPtr output,
+ Atom property);
+#endif /* RANDR_13_INTERFACE */
+
typedef Bool (*RRGetInfoProcPtr) (ScreenPtr pScreen, Rotation *rotations);
typedef Bool (*RRCloseScreenProcPtr) ( int i, ScreenPtr pscreen);
@@ -220,6 +227,9 @@ typedef struct _rrScrPriv {
RROutputValidateModeProcPtr rrOutputValidateMode;
RRModeDestroyProcPtr rrModeDestroy;
#endif
+#if RANDR_13_INTERFACE
+ RROutputGetPropertyProcPtr rrOutputGetProperty;
+#endif
/*
* Private part of the structure; not considered part of the ABI