summaryrefslogtreecommitdiff
path: root/randr.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-09-14 23:53:04 -0700
committerKeith Packard <keithp@neko.keithp.com>2006-09-14 23:53:04 -0700
commite9a5a489acd591ff53823b406dca13c622439c14 (patch)
tree789bc290ec3c18d6609bb59bc4639cff102a5895 /randr.h
parent81ecda4300e007d62b36942fd6ac56a3ee1a1fa0 (diff)
downloadxorg-proto-randrproto-e9a5a489acd591ff53823b406dca13c622439c14.tar.gz
Update header files for new 1.2 spec. Fix missing bits in spec.
Spec was missing a few things in the encoding section.
Diffstat (limited to 'randr.h')
-rw-r--r--randr.h35
1 files changed, 25 insertions, 10 deletions
diff --git a/randr.h b/randr.h
index 5975cdc..be00793 100644
--- a/randr.h
+++ b/randr.h
@@ -43,6 +43,7 @@ typedef unsigned short XRandrMonitor;
#define RRNumberErrors 0
#define RRNumberEvents 2
+#define RRNumberRequests 12
#define X_RRQueryVersion 0
/* we skip 1 to make old clients fail pretty immediately */
@@ -56,24 +57,39 @@ typedef unsigned short XRandrMonitor;
#define X_RRGetScreenInfo 5
/* V1.2 additions */
-#define X_RRGetScreenSizeRange 6
-#define X_RRSetScreenSize 7
-#define X_RRGetMonitorInfo 8
-#define X_RRAddMonitorMode 9
-#define X_RRDeleteMonitorMode 10
-#define X_RRSetMonitorConfig 11
+#define X_RRGetScreenSizeRange 6
+#define X_RRSetScreenSize 7
+#define X_RRGetScreenResources 8
+#define X_RRGetOutputInfo 9
+#define X_RRListOutputProperties 10
+#define X_RRChangeOutputProperty 11
+#define X_RRDeleteOutputProperty 12
+#define X_RRGetOutputProperty 13
+#define X_RRCreateMode 14
+#define X_RRDestroyMode 15
+#define X_RRAddOutputMode 16
+#define X_RRDeleteOutputMode 17
+#define X_RRGetCrtcInfo 18
+#define X_RRSetCrtcConfig 19
+#define X_RRGetCrtcGammaSize 20
+#define X_RRGetCrtcGamma 21
+#define X_RRSetCrtcGamma 22
/* Event selection bits */
#define RRScreenChangeNotifyMask (1L << 0)
/* V1.2 additions */
-#define RRMonitorChangeNotifyMask (1L << 1)
+#define RRCrtcChangeNotifyMask (1L << 1)
+#define RROutputChangeNotifyMask (1L << 2)
+#define RROutputPropertyNotifyMask (1L << 3)
/* Event codes */
#define RRScreenChangeNotify 0
/* V1.2 additions */
-#define RRNotify 1
+#define RRNotify 1
/* RRNotify Subcodes */
-#define RRNotify_MonitorChange 0
+#define RRNotify_CrtcChange 0
+#define RRNotify_OutputChange 1
+#define RRNotify_OutputProperty 2
/* used in the rotation field; rotation and reflection in 0.1 proto. */
#define RR_Rotate_0 1
@@ -92,7 +108,6 @@ typedef unsigned short XRandrMonitor;
#define RRSetConfigFailed 3
/* new in 1.2 protocol */
-#define RR_MonitorDisabled 0xffff
#define RR_HSyncPositive 0x00000001
#define RR_HSyncNegative 0x00000002