author | Alan Coopersmith <Alan.Coopersmith@Sun.COM> |
Fri, 15 May 2009 09:36:46 -0700 | |
changeset 705 | 24ca414edbff |
parent 639 | 01a1b4688b04 |
child 762 | 99150230410a |
permissions | -rw-r--r-- |
639
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
1 |
[Adjusted to apply to Xorg 1.5.3] |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
2 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
3 |
From 72978d1904966b4ae415ff0f45f565a3c9fe9898 Mon Sep 17 00:00:00 2001 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
4 |
From: Alan Coopersmith <[email protected]> |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
5 |
Date: Wed, 11 Feb 2009 19:59:46 -0800 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
6 |
Subject: [PATCH] Add helper function CreateNewResourceTypeNamed |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
7 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
8 |
Calls CreateNewResourceType to make a resource type, and if that |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
9 |
succeeds, calls RegisterResourceName to record the type name for |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
10 |
use by X-Resource, XACE/SELinux/XTsol, and DTrace. |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
11 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
12 |
Signed-off-by: Alan Coopersmith <[email protected]> |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
13 |
--- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
14 |
dix/resource.c | 13 ++++++++++++- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
15 |
include/resource.h | 3 +++ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
16 |
2 files changed, 15 insertions(+), 1 deletions(-) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
17 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
18 |
diff --git a/dix/resource.c b/dix/resource.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
19 |
index ec1d8cf..e3b0024 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
20 |
--- a/dix/resource.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
21 |
+++ b/dix/resource.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
22 |
@@ -147,10 +147,10 @@ Equipment Corporation. |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
23 |
#endif |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
24 |
#include "xace.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
25 |
#include <assert.h> |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
26 |
+#include "registry.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
27 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
28 |
#ifdef XSERVER_DTRACE |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
29 |
#include <sys/types.h> |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
30 |
-#include "registry.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
31 |
typedef const char *string; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
32 |
#include "Xserver-dtrace.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
33 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
34 |
@@ -224,6 +224,17 @@ CreateNewResourceType(DeleteType deleteFunc) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
35 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
36 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
37 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
38 |
+RESTYPE |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
39 |
+CreateNewResourceTypeNamed(DeleteType deleteFunc, char *name) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
40 |
+{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
41 |
+ RESTYPE res = CreateNewResourceType(deleteFunc); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
42 |
+ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
43 |
+ if (res && name) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
44 |
+ RegisterResourceName(res, name); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
45 |
+ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
46 |
+ return res; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
47 |
+} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
48 |
+ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
49 |
_X_EXPORT RESTYPE |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
50 |
CreateNewResourceClass(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
51 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
52 |
diff --git a/include/resource.h b/include/resource.h |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
53 |
index cb6e064..8432a6b 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
54 |
--- a/include/resource.h |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
55 |
+++ b/include/resource.h |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
56 |
@@ -157,6 +157,9 @@ typedef Bool (*FindComplexResType)( |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
57 |
extern RESTYPE CreateNewResourceType( |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
58 |
DeleteType /*deleteFunc*/); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
59 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
60 |
+extern _X_EXPORT RESTYPE CreateNewResourceTypeNamed( |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
61 |
+ DeleteType /*deleteFunc*/, char * /*name*/); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
62 |
+ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
63 |
extern RESTYPE CreateNewResourceClass(void); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
64 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
65 |
extern Bool InitClientResources( |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
66 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
67 |
-- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
68 |
1.5.6.5 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
69 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
70 |
From 2b6e5a8f5af5eb92a6402efba5fc4cf44d85d28c Mon Sep 17 00:00:00 2001 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
71 |
From: Alan Coopersmith <[email protected]> |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
72 |
Date: Wed, 11 Feb 2009 20:03:35 -0800 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
73 |
Subject: [PATCH] Convert all calls of CreateNewResourceType to CreateNewResourceTypeNamed |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
74 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
75 |
Also cleaned up various bits of checking to see if CreateNewResourceType |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
76 |
failed, including several places where the result was |'ed with flag bits |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
77 |
before checking to see if it was 0. |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
78 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
79 |
Signed-off-by: Alan Coopersmith <[email protected]> |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
80 |
--- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
81 |
Xext/geext.c | 4 ++-- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
82 |
Xext/mbuf.c | 13 +++++++++---- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
83 |
Xext/panoramiX.c | 20 +++++++++++++------- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
84 |
Xext/saver.c | 8 +++++--- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
85 |
Xext/security.c | 10 +++++----- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
86 |
Xext/shape.c | 4 ++-- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
87 |
Xext/shm.c | 2 +- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
88 |
Xext/sleepuntil.c | 3 ++- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
89 |
Xext/sync.c | 13 ++++++++----- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
90 |
Xext/xvdisp.c | 2 +- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
91 |
Xext/xvmain.c | 25 +++++++++++++++---------- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
92 |
Xext/xvmc.c | 9 ++++++--- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
93 |
Xi/extinit.c | 6 ++++-- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
94 |
composite/compext.c | 9 ++++++--- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
95 |
damageext/damageext.c | 5 +++-- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
96 |
dbe/dbe.c | 8 ++++++-- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
97 |
glx/glxext.c | 11 ++++++++--- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
98 |
hw/dmx/glxProxy/glxext.c | 15 ++++++++++----- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
99 |
hw/kdrive/ephyr/ephyrdriext.c | 2 +- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
100 |
hw/xfree86/dixmods/extmod/xf86vmode.c | 3 ++- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
101 |
hw/xfree86/dri/dri.c | 9 +++++++-- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
102 |
hw/xfree86/dri/xf86dri.c | 2 +- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
103 |
hw/xfree86/dri2/dri2ext.c | 7 ++++++- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
104 |
hw/xquartz/applewm.c | 4 ++-- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
105 |
hw/xquartz/xpr/dri.c | 5 +++-- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
106 |
hw/xwin/winwindowswm.c | 4 ++-- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
107 |
mi/miarc.c | 3 ++- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
108 |
randr/randr.c | 4 ++-- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
109 |
randr/rrcrtc.c | 4 +--- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
110 |
randr/rrmode.c | 4 +--- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
111 |
randr/rroutput.c | 5 ++--- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
112 |
record/record.c | 3 ++- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
113 |
render/picture.c | 11 ++++------- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
114 |
render/render.c | 3 ++- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
115 |
xfixes/cursor.c | 9 ++++++--- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
116 |
xfixes/region.c | 2 +- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
117 |
xfixes/select.c | 6 ++++-- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
118 |
xkb/xkb.c | 2 +- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
119 |
38 files changed, 158 insertions(+), 101 deletions(-) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
120 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
121 |
diff --git a/Xext/mbuf.c b/Xext/mbuf.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
122 |
index 09399b6..dffe978 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
123 |
--- a/Xext/mbuf.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
124 |
+++ b/Xext/mbuf.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
125 |
@@ -221,10 +221,14 @@ MultibufferExtensionInit() |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
126 |
* create the resource types |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
127 |
*/ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
128 |
MultibufferDrawableResType = |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
129 |
- CreateNewResourceType(MultibufferDrawableDelete)|RC_DRAWABLE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
130 |
- MultibufferResType = CreateNewResourceType(MultibufferDelete); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
131 |
- MultibuffersResType = CreateNewResourceType(MultibuffersDelete); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
132 |
- OtherClientResType = CreateNewResourceType(OtherClientDelete); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
133 |
+ CreateNewResourceTypeNamed(MultibufferDrawableDelete, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
134 |
+ "MultibufferDrawable"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
135 |
+ MultibufferResType = CreateNewResourceTypeNamed(MultibufferDelete, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
136 |
+ "MultibufferBuffer"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
137 |
+ MultibuffersResType = CreateNewResourceTypeNamed(MultibuffersDelete, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
138 |
+ "MultibufferWindow"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
139 |
+ OtherClientResType = CreateNewResourceTypeNamed(OtherClientDelete, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
140 |
+ "MultibufferOtherClient"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
141 |
if (MultibufferDrawableResType && MultibufferResType && |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
142 |
MultibuffersResType && OtherClientResType && |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
143 |
(extEntry = AddExtension(MULTIBUFFER_PROTOCOL_NAME, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
144 |
@@ -233,6 +237,7 @@ MultibufferExtensionInit() |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
145 |
ProcMultibufferDispatch, SProcMultibufferDispatch, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
146 |
MultibufferResetProc, StandardMinorOpcode))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
147 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
148 |
+ MultibufferDrawableResType |= RC_DRAWABLE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
149 |
MultibufferEventBase = extEntry->eventBase; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
150 |
MultibufferErrorBase = extEntry->errorBase; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
151 |
EventSwapVector[MultibufferEventBase + MultibufferClobberNotify] = (EventSwapPtr) SClobberNotifyEvent; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
152 |
diff --git a/Xext/panoramiX.c b/Xext/panoramiX.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
153 |
index 0439668..f09227b 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
154 |
--- a/Xext/panoramiX.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
155 |
+++ b/Xext/panoramiX.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
156 |
@@ -500,15 +500,21 @@ void PanoramiXExtensionInit(int argc, char *argv[]) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
157 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
158 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
159 |
XRC_DRAWABLE = CreateNewResourceClass(); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
160 |
- XRT_WINDOW = CreateNewResourceType(XineramaDeleteResource) | |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
161 |
- XRC_DRAWABLE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
162 |
- XRT_PIXMAP = CreateNewResourceType(XineramaDeleteResource) | |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
163 |
- XRC_DRAWABLE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
164 |
- XRT_GC = CreateNewResourceType(XineramaDeleteResource); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
165 |
- XRT_COLORMAP = CreateNewResourceType(XineramaDeleteResource); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
166 |
+ XRT_WINDOW = CreateNewResourceTypeNamed(XineramaDeleteResource, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
167 |
+ "XineramaWindow"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
168 |
+ XRT_PIXMAP = CreateNewResourceTypeNamed(XineramaDeleteResource, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
169 |
+ "XineramaPixmap"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
170 |
+ XRT_GC = CreateNewResourceTypeNamed(XineramaDeleteResource, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
171 |
+ "XineramaGC"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
172 |
+ XRT_COLORMAP = CreateNewResourceTypeNamed(XineramaDeleteResource, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
173 |
+ "XineramaColormap"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
174 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
175 |
panoramiXGeneration = serverGeneration; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
176 |
- success = TRUE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
177 |
+ if (XRT_WINDOW && XRT_PIXMAP && XRT_GC && XRT_COLORMAP) { |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
178 |
+ XRT_WINDOW |= XRC_DRAWABLE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
179 |
+ XRT_PIXMAP |= XRC_DRAWABLE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
180 |
+ success = TRUE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
181 |
+ } |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
182 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
183 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
184 |
if (!success) { |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
185 |
diff --git a/Xext/saver.c b/Xext/saver.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
186 |
index cd67749..f1b0f33 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
187 |
--- a/Xext/saver.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
188 |
+++ b/Xext/saver.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
189 |
@@ -252,9 +252,11 @@ ScreenSaverExtensionInit(INITARGS) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
190 |
int i; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
191 |
ScreenPtr pScreen; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
192 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
193 |
- AttrType = CreateNewResourceType(ScreenSaverFreeAttr); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
194 |
- EventType = CreateNewResourceType(ScreenSaverFreeEvents); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
195 |
- SuspendType = CreateNewResourceType(ScreenSaverFreeSuspend); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
196 |
+ AttrType = CreateNewResourceTypeNamed(ScreenSaverFreeAttr, "SaverAttr"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
197 |
+ EventType = CreateNewResourceTypeNamed(ScreenSaverFreeEvents, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
198 |
+ "SaverEvent"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
199 |
+ SuspendType = CreateNewResourceTypeNamed(ScreenSaverFreeSuspend, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
200 |
+ "SaverSuspend"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
201 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
202 |
for (i = 0; i < screenInfo.numScreens; i++) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
203 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
204 |
diff --git a/Xext/security.c b/Xext/security.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
205 |
index fc4691b..0c28ec0 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
206 |
--- a/Xext/security.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
207 |
+++ b/Xext/security.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
208 |
@@ -1093,17 +1093,17 @@ SecurityExtensionInit(INITARGS) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
209 |
int ret = TRUE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
210 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
211 |
SecurityAuthorizationResType = |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
212 |
- CreateNewResourceType(SecurityDeleteAuthorization); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
213 |
+ CreateNewResourceTypeNamed(SecurityDeleteAuthorization, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
214 |
+ "SecurityAuthorization"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
215 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
216 |
- RTEventClient = CreateNewResourceType( |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
217 |
- SecurityDeleteAuthorizationEventClient); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
218 |
+ RTEventClient = CreateNewResourceTypeNamed( |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
219 |
+ SecurityDeleteAuthorizationEventClient, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
220 |
+ "SecurityEventClient"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
221 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
222 |
if (!SecurityAuthorizationResType || !RTEventClient) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
223 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
224 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
225 |
RTEventClient |= RC_NEVERRETAIN; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
226 |
- RegisterResourceName(SecurityAuthorizationResType, "SecurityAuthorization"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
227 |
- RegisterResourceName(RTEventClient, "SecurityEventClient"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
228 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
229 |
/* Allocate the private storage */ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
230 |
if (!dixRequestPrivate(stateKey, sizeof(SecurityStateRec))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
231 |
diff --git a/Xext/shape.c b/Xext/shape.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
232 |
index fbf8f8c..d1991ff 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
233 |
--- a/Xext/shape.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
234 |
+++ b/Xext/shape.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
235 |
@@ -127,8 +127,8 @@ ShapeExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
236 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
237 |
ExtensionEntry *extEntry; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
238 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
239 |
- ClientType = CreateNewResourceType(ShapeFreeClient); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
240 |
- EventType = CreateNewResourceType(ShapeFreeEvents); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
241 |
+ ClientType = CreateNewResourceTypeNamed(ShapeFreeClient, "ShapeClient"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
242 |
+ EventType = CreateNewResourceTypeNamed(ShapeFreeEvents, "ShapeEvent"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
243 |
if (ClientType && EventType && |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
244 |
(extEntry = AddExtension(SHAPENAME, ShapeNumberEvents, 0, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
245 |
ProcShapeDispatch, SProcShapeDispatch, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
246 |
diff --git a/Xext/shm.c b/Xext/shm.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
247 |
index 7b63484..b2406e7 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
248 |
--- a/Xext/shm.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
249 |
+++ b/Xext/shm.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
250 |
@@ -244,7 +244,7 @@ ShmExtensionInit(INITARGS) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
251 |
screenInfo.screens[i]->DestroyPixmap = ShmDestroyPixmap; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
252 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
253 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
254 |
- ShmSegType = CreateNewResourceType(ShmDetachSegment); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
255 |
+ ShmSegType = CreateNewResourceTypeNamed(ShmDetachSegment, "ShmSeg"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
256 |
if (ShmSegType && |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
257 |
(extEntry = AddExtension(SHMNAME, ShmNumberEvents, ShmNumberErrors, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
258 |
ProcShmDispatch, SProcShmDispatch, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
259 |
diff --git a/Xext/sleepuntil.c b/Xext/sleepuntil.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
260 |
index 2616a5e..84a260f 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
261 |
--- a/Xext/sleepuntil.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
262 |
+++ b/Xext/sleepuntil.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
263 |
@@ -87,7 +87,8 @@ ClientSleepUntil (ClientPtr client, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
264 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
265 |
if (SertafiedGeneration != serverGeneration) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
266 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
267 |
- SertafiedResType = CreateNewResourceType (SertafiedDelete); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
268 |
+ SertafiedResType = CreateNewResourceTypeNamed (SertafiedDelete, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
269 |
+ "ClientSleep"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
270 |
if (!SertafiedResType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
271 |
return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
272 |
SertafiedGeneration = serverGeneration; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
273 |
diff --git a/Xext/sync.c b/Xext/sync.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
274 |
index 9236fab..5d2d77c 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
275 |
--- a/Xext/sync.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
276 |
+++ b/Xext/sync.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
277 |
@@ -876,7 +876,7 @@ SyncCreateSystemCounter( |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
278 |
*/ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
279 |
if (RTCounter == 0) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
280 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
281 |
- RTCounter = CreateNewResourceType(FreeCounter); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
282 |
+ RTCounter = CreateNewResourceTypeNamed(FreeCounter, "SyncCounter"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
283 |
if (RTCounter == 0) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
284 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
285 |
return NULL; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
286 |
@@ -2127,11 +2127,12 @@ SyncExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
287 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
288 |
if (RTCounter == 0) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
289 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
290 |
- RTCounter = CreateNewResourceType(FreeCounter); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
291 |
+ RTCounter = CreateNewResourceTypeNamed(FreeCounter, "SyncCounter"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
292 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
293 |
- RTAlarm = CreateNewResourceType(FreeAlarm); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
294 |
- RTAwait = CreateNewResourceType(FreeAwait)|RC_NEVERRETAIN; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
295 |
- RTAlarmClient = CreateNewResourceType(FreeAlarmClient)|RC_NEVERRETAIN; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
296 |
+ RTAlarm = CreateNewResourceTypeNamed(FreeAlarm, "SyncAlarm"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
297 |
+ RTAwait = CreateNewResourceTypeNamed(FreeAwait, "SyncAwait"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
298 |
+ RTAlarmClient = CreateNewResourceTypeNamed(FreeAlarmClient, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
299 |
+ "SyncAlarmClient"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
300 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
301 |
if (RTCounter == 0 || RTAwait == 0 || RTAlarm == 0 || |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
302 |
RTAlarmClient == 0 || |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
303 |
@@ -2146,6 +2147,8 @@ SyncExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
304 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
305 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
306 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
307 |
+ RTAwait |= RC_NEVERRETAIN; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
308 |
+ RTAlarmClient |= RC_NEVERRETAIN; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
309 |
SyncEventBase = extEntry->eventBase; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
310 |
SyncErrorBase = extEntry->errorBase; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
311 |
EventSwapVector[SyncEventBase + XSyncCounterNotify] = (EventSwapPtr) SCounterNotifyEvent; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
312 |
diff --git a/Xext/xvdisp.c b/Xext/xvdisp.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
313 |
index 770c53a..bc8039d 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
314 |
--- a/Xext/xvdisp.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
315 |
+++ b/Xext/xvdisp.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
316 |
@@ -1924,7 +1924,7 @@ void XineramifyXv(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
317 |
XvAdaptorPtr MatchingAdaptors[MAXSCREENS]; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
318 |
int i, j, k, l; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
319 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
320 |
- XvXRTPort = CreateNewResourceType(XineramaDeleteResource); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
321 |
+ XvXRTPort = CreateNewResourceTypeNamed(XineramaDeleteResource, "XvXRTPort"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
322 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
323 |
if(!xvsp0) return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
324 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
325 |
diff --git a/Xext/xvmain.c b/Xext/xvmain.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
326 |
index 4771946..92fba4f 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
327 |
--- a/Xext/xvmain.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
328 |
+++ b/Xext/xvmain.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
329 |
@@ -208,37 +208,42 @@ CreateResourceTypes(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
330 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
331 |
XvResourceGeneration = serverGeneration; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
332 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
333 |
- if (!(XvRTPort = CreateNewResourceType(XvdiDestroyPort))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
334 |
+ if (!(XvRTPort = CreateNewResourceTypeNamed(XvdiDestroyPort, "XvRTPort"))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
335 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
336 |
ErrorF("CreateResourceTypes: failed to allocate port resource.\n"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
337 |
return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
338 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
339 |
- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
340 |
- if (!(XvRTGrab = CreateNewResourceType(XvdiDestroyGrab))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
341 |
+ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
342 |
+ if (!(XvRTGrab = CreateNewResourceTypeNamed(XvdiDestroyGrab, "XvRTGrab"))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
343 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
344 |
ErrorF("CreateResourceTypes: failed to allocate grab resource.\n"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
345 |
return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
346 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
347 |
- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
348 |
- if (!(XvRTEncoding = CreateNewResourceType(XvdiDestroyEncoding))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
349 |
+ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
350 |
+ if (!(XvRTEncoding = CreateNewResourceTypeNamed(XvdiDestroyEncoding, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
351 |
+ "XvRTEncoding"))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
352 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
353 |
ErrorF("CreateResourceTypes: failed to allocate encoding resource.\n"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
354 |
return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
355 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
356 |
- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
357 |
- if (!(XvRTVideoNotify = CreateNewResourceType(XvdiDestroyVideoNotify))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
358 |
+ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
359 |
+ if (!(XvRTVideoNotify = CreateNewResourceTypeNamed(XvdiDestroyVideoNotify, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
360 |
+ "XvRTVideoNotify"))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
361 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
362 |
ErrorF("CreateResourceTypes: failed to allocate video notify resource.\n"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
363 |
return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
364 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
365 |
- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
366 |
- if (!(XvRTVideoNotifyList = CreateNewResourceType(XvdiDestroyVideoNotifyList))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
367 |
+ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
368 |
+ if (!(XvRTVideoNotifyList = |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
369 |
+ CreateNewResourceTypeNamed(XvdiDestroyVideoNotifyList, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
370 |
+ "XvRTVideoNotifyList"))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
371 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
372 |
ErrorF("CreateResourceTypes: failed to allocate video notify list resource.\n"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
373 |
return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
374 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
375 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
376 |
- if (!(XvRTPortNotify = CreateNewResourceType(XvdiDestroyPortNotify))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
377 |
+ if (!(XvRTPortNotify = CreateNewResourceTypeNamed(XvdiDestroyPortNotify, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
378 |
+ "XvRTPortNotify"))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
379 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
380 |
ErrorF("CreateResourceTypes: failed to allocate port notify resource.\n"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
381 |
return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
382 |
diff --git a/Xext/xvmc.c b/Xext/xvmc.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
383 |
index 9166cf8..6eeaec0 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
384 |
--- a/Xext/xvmc.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
385 |
+++ b/Xext/xvmc.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
386 |
@@ -670,13 +670,16 @@ XvMCExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
387 |
if(XvMCScreenKey == NULL) /* nobody supports it */ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
388 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
389 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
390 |
- if(!(XvMCRTContext = CreateNewResourceType(XvMCDestroyContextRes))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
391 |
+ if(!(XvMCRTContext = CreateNewResourceTypeNamed(XvMCDestroyContextRes, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
392 |
+ "XvMCRTContext"))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
393 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
394 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
395 |
- if(!(XvMCRTSurface = CreateNewResourceType(XvMCDestroySurfaceRes))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
396 |
+ if(!(XvMCRTSurface = CreateNewResourceTypeNamed(XvMCDestroySurfaceRes, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
397 |
+ "XvMCRTSurface"))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
398 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
399 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
400 |
- if(!(XvMCRTSubpicture = CreateNewResourceType(XvMCDestroySubpictureRes))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
401 |
+ if(!(XvMCRTSubpicture = CreateNewResourceTypeNamed(XvMCDestroySubpictureRes, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
402 |
+ "XvMCRTSubpicture"))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
403 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
404 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
405 |
extEntry = AddExtension(XvMCName, XvMCNumEvents, XvMCNumErrors, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
406 |
diff --git a/Xi/extinit.c b/Xi/extinit.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
407 |
index a7a21ec..ffc4299 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
408 |
--- a/Xi/extinit.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
409 |
+++ b/Xi/extinit.c |
705
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
639
diff
changeset
|
410 |
@@ -988,8 +988,10 @@ XInputExtensionInit(void) |
639
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
411 |
AllExtensionVersions[IReqCode - 128] = thisversion; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
412 |
MakeDeviceTypeAtoms(); |
705
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
639
diff
changeset
|
413 |
XIInitKnownProperties(); |
639
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
414 |
- RT_INPUTCLIENT = CreateNewResourceType((DeleteType) InputClientGone); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
415 |
- RegisterResourceName(RT_INPUTCLIENT, "INPUTCLIENT"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
416 |
+ RT_INPUTCLIENT = CreateNewResourceTypeNamed( |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
417 |
+ (DeleteType) InputClientGone, "INPUTCLIENT"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
418 |
+ if (!RT_INPUTCLIENT) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
419 |
+ FatalError("Failed to add resource type for XI.\n"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
420 |
FixExtensionEvents(extEntry); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
421 |
ReplySwapVector[IReqCode] = (ReplySwapPtr) SReplyIDispatch; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
422 |
EventSwapVector[DeviceValuator] = SEventIDispatch; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
423 |
diff --git a/composite/compext.c b/composite/compext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
424 |
index c154402..6fedc49 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
425 |
--- a/composite/compext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
426 |
+++ b/composite/compext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
427 |
@@ -574,15 +574,18 @@ CompositeExtensionInit (void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
428 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
429 |
#endif |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
430 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
431 |
- CompositeClientWindowType = CreateNewResourceType (FreeCompositeClientWindow); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
432 |
+ CompositeClientWindowType = CreateNewResourceTypeNamed |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
433 |
+ (FreeCompositeClientWindow, "CompositeClientWindow"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
434 |
if (!CompositeClientWindowType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
435 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
436 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
437 |
- CompositeClientSubwindowsType = CreateNewResourceType (FreeCompositeClientSubwindows); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
438 |
+ CompositeClientSubwindowsType = CreateNewResourceTypeNamed |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
439 |
+ (FreeCompositeClientSubwindows, "CompositeClientSubwindows"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
440 |
if (!CompositeClientSubwindowsType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
441 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
442 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
443 |
- CompositeClientOverlayType = CreateNewResourceType (FreeCompositeClientOverlay); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
444 |
+ CompositeClientOverlayType = CreateNewResourceTypeNamed |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
445 |
+ (FreeCompositeClientOverlay, "CompositeClientOverlay"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
446 |
if (!CompositeClientOverlayType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
447 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
448 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
449 |
diff --git a/damageext/damageext.c b/damageext/damageext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
450 |
index 8fa1c53..26a7cb9 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
451 |
--- a/damageext/damageext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
452 |
+++ b/damageext/damageext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
453 |
@@ -503,11 +503,12 @@ DamageExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
454 |
for (s = 0; s < screenInfo.numScreens; s++) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
455 |
DamageSetup (screenInfo.screens[s]); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
456 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
457 |
- DamageExtType = CreateNewResourceType (FreeDamageExt); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
458 |
+ DamageExtType = CreateNewResourceTypeNamed (FreeDamageExt, "DamageExt"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
459 |
if (!DamageExtType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
460 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
461 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
462 |
- DamageExtWinType = CreateNewResourceType (FreeDamageExtWin); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
463 |
+ DamageExtWinType = CreateNewResourceTypeNamed (FreeDamageExtWin, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
464 |
+ "DamageExtWin"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
465 |
if (!DamageExtWinType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
466 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
467 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
468 |
diff --git a/dbe/dbe.c b/dbe/dbe.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
469 |
index 3fd99df..11383a5 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
470 |
--- a/dbe/dbe.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
471 |
+++ b/dbe/dbe.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
472 |
@@ -1568,9 +1568,13 @@ DbeExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
473 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
474 |
/* Create the resource types. */ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
475 |
dbeDrawableResType = |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
476 |
- CreateNewResourceType(DbeDrawableDelete) | RC_DRAWABLE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
477 |
+ CreateNewResourceTypeNamed(DbeDrawableDelete, "dbeDrawable"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
478 |
dbeWindowPrivResType = |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
479 |
- CreateNewResourceType(DbeWindowPrivDelete); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
480 |
+ CreateNewResourceTypeNamed(DbeWindowPrivDelete, "dbeWindow"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
481 |
+ if (!dbeDrawableResType || !dbeWindowPrivResType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
482 |
+ return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
483 |
+ dbeDrawableResType |= RC_DRAWABLE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
484 |
+ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
485 |
if (!dixRegisterPrivateOffset(dbeDrawableResType, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
486 |
offsetof(PixmapRec, devPrivates))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
487 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
488 |
diff --git a/glx/glxext.c b/glx/glxext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
489 |
index 025e619..f5083de 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
490 |
--- a/glx/glxext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
491 |
+++ b/glx/glxext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
492 |
@@ -291,9 +291,14 @@ void GlxExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
493 |
__GLXprovider *p; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
494 |
Bool glx_provided = False; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
495 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
496 |
- __glXContextRes = CreateNewResourceType((DeleteType)ContextGone); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
497 |
- __glXDrawableRes = CreateNewResourceType((DeleteType)DrawableGone); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
498 |
- __glXSwapBarrierRes = CreateNewResourceType((DeleteType)SwapBarrierGone); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
499 |
+ __glXContextRes = CreateNewResourceTypeNamed((DeleteType)ContextGone, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
500 |
+ "GLXContext"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
501 |
+ __glXDrawableRes = CreateNewResourceTypeNamed((DeleteType)DrawableGone, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
502 |
+ "GLXDrawable"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
503 |
+ __glXSwapBarrierRes = CreateNewResourceTypeNamed( |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
504 |
+ (DeleteType)SwapBarrierGone, "GLXSwapBarrier"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
505 |
+ if (!__glXContextRes || !__glXDrawableRes || !__glXSwapBarrierRes) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
506 |
+ return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
507 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
508 |
if (!dixRequestPrivate(glxClientPrivateKey, sizeof (__GLXclientState))) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
509 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
510 |
diff --git a/hw/dmx/glxProxy/glxext.c b/hw/dmx/glxProxy/glxext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
511 |
index b30d144..74ae8f0 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
512 |
--- a/hw/dmx/glxProxy/glxext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
513 |
+++ b/hw/dmx/glxProxy/glxext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
514 |
@@ -293,11 +293,16 @@ void GlxExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
515 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
516 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
517 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
518 |
- __glXContextRes = CreateNewResourceType((DeleteType)ContextGone); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
519 |
- __glXClientRes = CreateNewResourceType((DeleteType)ClientGone); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
520 |
- __glXPixmapRes = CreateNewResourceType((DeleteType)PixmapGone); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
521 |
- __glXWindowRes = CreateNewResourceType((DeleteType)WindowGone); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
522 |
- __glXPbufferRes = CreateNewResourceType((DeleteType)PbufferGone); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
523 |
+ __glXContextRes = CreateNewResourceTypeNamed((DeleteType)ContextGone, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
524 |
+ "GLXContext"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
525 |
+ __glXClientRes = CreateNewResourceTypeNamed((DeleteType)ClientGone, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
526 |
+ "GLXClient"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
527 |
+ __glXPixmapRes = CreateNewResourceTypeNamed((DeleteType)PixmapGone, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
528 |
+ "GLXPixmap"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
529 |
+ __glXWindowRes = CreateNewResourceTypeNamed((DeleteType)WindowGone, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
530 |
+ "GLXWindow"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
531 |
+ __glXPbufferRes = CreateNewResourceTypeNamed((DeleteType)PbufferGone, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
532 |
+ "GLXPbuffer"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
533 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
534 |
/* |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
535 |
** Add extension to server extensions. |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
536 |
diff --git a/hw/kdrive/ephyr/ephyrdriext.c b/hw/kdrive/ephyr/ephyrdriext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
537 |
index a127aef..14cd8a6 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
538 |
--- a/hw/kdrive/ephyr/ephyrdriext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
539 |
+++ b/hw/kdrive/ephyr/ephyrdriext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
540 |
@@ -140,7 +140,7 @@ ephyrDRIExtensionInit (ScreenPtr a_screen) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
541 |
EPHYR_LOG ("host X does have XShape extension\n") ; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
542 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
543 |
#ifdef XF86DRI_EVENTS |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
544 |
- EventType = CreateNewResourceType (XF86DRIFreeEvents); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
545 |
+ EventType = CreateNewResourceTypeNamed (XF86DRIFreeEvents, "DRIEvents"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
546 |
#endif |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
547 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
548 |
if ((extEntry = AddExtension(XF86DRINAME, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
549 |
diff --git a/hw/xfree86/dixmods/extmod/xf86vmode.c b/hw/xfree86/dixmods/extmod/xf86vmode.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
550 |
index ea8089e..78957e4 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
551 |
--- a/hw/xfree86/dixmods/extmod/xf86vmode.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
552 |
+++ b/hw/xfree86/dixmods/extmod/xf86vmode.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
553 |
@@ -170,7 +170,8 @@ XFree86VidModeExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
554 |
DEBUG_P("XFree86VidModeExtensionInit"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
555 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
556 |
#ifdef XF86VIDMODE_EVENTS |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
557 |
- EventType = CreateNewResourceType(XF86VidModeFreeEvents); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
558 |
+ EventType = CreateNewResourceTypeNamed(XF86VidModeFreeEvents, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
559 |
+ "VidModeEvent"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
560 |
#endif |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
561 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
562 |
for(i = 0; i < screenInfo.numScreens; i++) { |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
563 |
diff --git a/hw/xfree86/dri/dri.c b/hw/xfree86/dri/dri.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
564 |
index 871b6a9..a4bfaae 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
565 |
--- a/hw/xfree86/dri/dri.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
566 |
+++ b/hw/xfree86/dri/dri.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
567 |
@@ -790,8 +790,13 @@ DRIExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
568 |
return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
569 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
570 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
571 |
- DRIDrawablePrivResType = CreateNewResourceType(DRIDrawablePrivDelete); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
572 |
- DRIContextPrivResType = CreateNewResourceType(DRIContextPrivDelete); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
573 |
+ DRIDrawablePrivResType = CreateNewResourceTypeNamed(DRIDrawablePrivDelete, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
574 |
+ "DRIDrawable"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
575 |
+ DRIContextPrivResType = CreateNewResourceTypeNamed(DRIContextPrivDelete, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
576 |
+ "DRIContext"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
577 |
+ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
578 |
+ if (!DRIDrawablePrivResType || !DRIContextPrivResType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
579 |
+ return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
580 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
581 |
RegisterBlockAndWakeupHandlers(DRIBlockHandler, DRIWakeupHandler, NULL); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
582 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
583 |
diff --git a/hw/xfree86/dri/xf86dri.c b/hw/xfree86/dri/xf86dri.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
584 |
index 902fe12..e7c0f43 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
585 |
--- a/hw/xfree86/dri/xf86dri.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
586 |
+++ b/hw/xfree86/dri/xf86dri.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
587 |
@@ -93,7 +93,7 @@ XFree86DRIExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
588 |
ExtensionEntry* extEntry; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
589 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
590 |
#ifdef XF86DRI_EVENTS |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
591 |
- EventType = CreateNewResourceType(XF86DRIFreeEvents); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
592 |
+ EventType = CreateNewResourceTypeNamed(XF86DRIFreeEvents, "DRIEvent"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
593 |
#endif |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
594 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
595 |
if ( |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
596 |
diff --git a/hw/xfree86/dri2/dri2ext.c b/hw/xfree86/dri2/dri2ext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
597 |
index d6e1c96..0a74bd0 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
598 |
--- a/hw/xfree86/dri2/dri2ext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
599 |
+++ b/hw/xfree86/dri2/dri2ext.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
600 |
@@ -352,6 +352,12 @@ static int DRI2DrawableGone(pointer p, XID id) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
601 |
static void |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
602 |
DRI2ExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
603 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
604 |
+ dri2DrawableRes = CreateNewResourceTypeNamed(DRI2DrawableGone, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
605 |
+ "DRI2Drawable"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
606 |
+ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
607 |
+ if (!dri2DrawableRes) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
608 |
+ return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
609 |
+ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
610 |
dri2Extension = AddExtension(DRI2_NAME, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
611 |
DRI2NumberEvents, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
612 |
DRI2NumberErrors, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
613 |
@@ -360,7 +366,6 @@ DRI2ExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
614 |
NULL, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
615 |
StandardMinorOpcode); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
616 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
617 |
- dri2DrawableRes = CreateNewResourceType(DRI2DrawableGone); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
618 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
619 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
620 |
extern Bool noDRI2Extension; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
621 |
diff --git a/hw/xquartz/applewm.c b/hw/xquartz/applewm.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
622 |
index 238b90d..4b7e207 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
623 |
--- a/hw/xquartz/applewm.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
624 |
+++ b/hw/xquartz/applewm.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
625 |
@@ -110,8 +110,8 @@ AppleWMExtensionInit( |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
626 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
627 |
ExtensionEntry* extEntry; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
628 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
629 |
- ClientType = CreateNewResourceType(WMFreeClient); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
630 |
- EventType = CreateNewResourceType(WMFreeEvents); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
631 |
+ ClientType = CreateNewResourceTypeNamed(WMFreeClient, "WMClient"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
632 |
+ EventType = CreateNewResourceTypeNamed(WMFreeEvents, "WMEvent"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
633 |
eventResource = FakeClientID(0); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
634 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
635 |
if (ClientType && EventType && |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
636 |
diff --git a/hw/xquartz/xpr/dri.c b/hw/xquartz/xpr/dri.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
637 |
index ff2365e..8ee127a 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
638 |
--- a/hw/xquartz/xpr/dri.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
639 |
+++ b/hw/xquartz/xpr/dri.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
640 |
@@ -256,9 +256,10 @@ DRICloseScreen(ScreenPtr pScreen) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
641 |
Bool |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
642 |
DRIExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
643 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
644 |
- DRIDrawablePrivResType = CreateNewResourceType(DRIDrawablePrivDelete); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
645 |
+ DRIDrawablePrivResType = CreateNewResourceTypeNamed(DRIDrawablePrivDelete, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
646 |
+ "DRIDrawable"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
647 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
648 |
- return TRUE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
649 |
+ return (DRIDrawablePrivResType != 0); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
650 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
651 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
652 |
void |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
653 |
diff --git a/hw/xwin/winwindowswm.c b/hw/xwin/winwindowswm.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
654 |
index 2eecd6b..e7efaba 100755 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
655 |
--- a/hw/xwin/winwindowswm.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
656 |
+++ b/hw/xwin/winwindowswm.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
657 |
@@ -84,8 +84,8 @@ winWindowsWMExtensionInit () |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
658 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
659 |
ExtensionEntry* extEntry; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
660 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
661 |
- ClientType = CreateNewResourceType(WMFreeClient); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
662 |
- EventType = CreateNewResourceType(WMFreeEvents); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
663 |
+ ClientType = CreateNewResourceTypeNamed(WMFreeClient, "WMClient"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
664 |
+ EventType = CreateNewResourceTypeNamed(WMFreeEvents, "WMEvent"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
665 |
eventResource = FakeClientID(0); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
666 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
667 |
if (ClientType && EventType && |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
668 |
diff --git a/mi/miarc.c b/mi/miarc.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
669 |
index a3e2580..545b3ba 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
670 |
--- a/mi/miarc.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
671 |
+++ b/mi/miarc.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
672 |
@@ -866,7 +866,8 @@ miComputeWideEllipse( |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
673 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
674 |
if (!cacheType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
675 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
676 |
- cacheType = CreateNewResourceType(miFreeArcCache); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
677 |
+ cacheType = CreateNewResourceTypeNamed(miFreeArcCache, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
678 |
+ "miArcCache"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
679 |
(void) AddResource(FakeClientID(0), cacheType, NULL); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
680 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
681 |
} else { |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
682 |
diff --git a/randr/randr.c b/randr/randr.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
683 |
index 07dd9e9..ac8cba0 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
684 |
--- a/randr/randr.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
685 |
+++ b/randr/randr.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
686 |
@@ -326,10 +326,10 @@ RRExtensionInit (void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
687 |
if (!AddCallback (&ClientStateCallback, RRClientCallback, 0)) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
688 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
689 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
690 |
- RRClientType = CreateNewResourceType(RRFreeClient); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
691 |
+ RRClientType = CreateNewResourceTypeNamed(RRFreeClient, "RandRClient"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
692 |
if (!RRClientType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
693 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
694 |
- RREventType = CreateNewResourceType(RRFreeEvents); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
695 |
+ RREventType = CreateNewResourceTypeNamed(RRFreeEvents, "RandREvent"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
696 |
if (!RREventType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
697 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
698 |
extEntry = AddExtension (RANDR_NAME, RRNumberEvents, RRNumberErrors, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
699 |
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
700 |
index 2160834..cea7775 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
701 |
--- a/randr/rrcrtc.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
702 |
+++ b/randr/rrcrtc.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
703 |
@@ -22,7 +22,6 @@ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
704 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
705 |
#include "randrstr.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
706 |
#include "swaprep.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
707 |
-#include "registry.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
708 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
709 |
RESTYPE RRCrtcType; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
710 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
711 |
@@ -633,10 +632,9 @@ RRCrtcTransformSet (RRCrtcPtr crtc, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
712 |
Bool |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
713 |
RRCrtcInit (void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
714 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
715 |
- RRCrtcType = CreateNewResourceType (RRCrtcDestroyResource); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
716 |
+ RRCrtcType = CreateNewResourceTypeNamed (RRCrtcDestroyResource, "CRTC"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
717 |
if (!RRCrtcType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
718 |
return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
719 |
- RegisterResourceName (RRCrtcType, "CRTC"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
720 |
return TRUE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
721 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
722 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
723 |
diff --git a/randr/rrmode.c b/randr/rrmode.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
724 |
index 2fa4403..f23d8ad 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
725 |
--- a/randr/rrmode.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
726 |
+++ b/randr/rrmode.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
727 |
@@ -21,7 +21,6 @@ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
728 |
*/ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
729 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
730 |
#include "randrstr.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
731 |
-#include "registry.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
732 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
733 |
RESTYPE RRModeType; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
734 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
735 |
@@ -266,10 +265,9 @@ RRModeInit (void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
736 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
737 |
assert (num_modes == 0); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
738 |
assert (modes == NULL); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
739 |
- RRModeType = CreateNewResourceType (RRModeDestroyResource); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
740 |
+ RRModeType = CreateNewResourceTypeNamed (RRModeDestroyResource, "MODE"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
741 |
if (!RRModeType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
742 |
return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
743 |
- RegisterResourceName (RRModeType, "MODE"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
744 |
return TRUE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
745 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
746 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
747 |
diff --git a/randr/rroutput.c b/randr/rroutput.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
748 |
index 0ae7873..3ee3865 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
749 |
--- a/randr/rroutput.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
750 |
+++ b/randr/rroutput.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
751 |
@@ -22,7 +22,6 @@ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
752 |
*/ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
753 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
754 |
#include "randrstr.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
755 |
-#include "registry.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
756 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
757 |
RESTYPE RROutputType; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
758 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
759 |
@@ -422,10 +421,10 @@ RROutputDestroyResource (pointer value, XID pid) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
760 |
Bool |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
761 |
RROutputInit (void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
762 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
763 |
- RROutputType = CreateNewResourceType (RROutputDestroyResource); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
764 |
+ RROutputType = CreateNewResourceTypeNamed (RROutputDestroyResource, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
765 |
+ "OUTPUT"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
766 |
if (!RROutputType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
767 |
return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
768 |
- RegisterResourceName (RROutputType, "OUTPUT"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
769 |
return TRUE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
770 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
771 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
772 |
diff --git a/record/record.c b/record/record.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
773 |
index f97626f..5a77343 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
774 |
--- a/record/record.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
775 |
+++ b/record/record.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
776 |
@@ -2863,7 +2863,8 @@ RecordExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
777 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
778 |
ExtensionEntry *extentry; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
779 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
780 |
- RTContext = CreateNewResourceType(RecordDeleteContext); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
781 |
+ RTContext = CreateNewResourceTypeNamed(RecordDeleteContext, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
782 |
+ "RecordContext"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
783 |
if (!RTContext) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
784 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
785 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
786 |
diff --git a/render/picture.c b/render/picture.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
787 |
index f99c53f..4984535 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
788 |
--- a/render/picture.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
789 |
+++ b/render/picture.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
790 |
@@ -41,7 +41,6 @@ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
791 |
#include "servermd.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
792 |
#include "picturestr.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
793 |
#include "xace.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
794 |
-#include "registry.h" |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
795 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
796 |
static int PictureScreenPrivateKeyIndex; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
797 |
DevPrivateKey PictureScreenPrivateKey = &PictureScreenPrivateKeyIndex; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
798 |
@@ -577,19 +576,17 @@ PictureInit (ScreenPtr pScreen, PictFormatPtr formats, int nformats) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
799 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
800 |
if (PictureGeneration != serverGeneration) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
801 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
802 |
- PictureType = CreateNewResourceType (FreePicture); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
803 |
+ PictureType = CreateNewResourceTypeNamed (FreePicture, "PICTURE"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
804 |
if (!PictureType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
805 |
return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
806 |
- PictFormatType = CreateNewResourceType (FreePictFormat); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
807 |
+ PictFormatType = CreateNewResourceTypeNamed (FreePictFormat, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
808 |
+ "PICTFORMAT"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
809 |
if (!PictFormatType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
810 |
return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
811 |
- GlyphSetType = CreateNewResourceType (FreeGlyphSet); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
812 |
+ GlyphSetType = CreateNewResourceTypeNamed (FreeGlyphSet, "GLYPHSET"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
813 |
if (!GlyphSetType) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
814 |
return FALSE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
815 |
PictureGeneration = serverGeneration; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
816 |
- RegisterResourceName (PictureType, "PICTURE"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
817 |
- RegisterResourceName (PictFormatType, "PICTFORMAT"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
818 |
- RegisterResourceName (GlyphSetType, "GLYPHSET"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
819 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
820 |
if (!formats) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
821 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
822 |
diff --git a/render/render.c b/render/render.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
823 |
index 658b170..01e0acc 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
824 |
--- a/render/render.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
825 |
+++ b/render/render.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
826 |
@@ -3268,7 +3268,8 @@ PanoramiXRenderInit (void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
827 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
828 |
int i; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
829 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
830 |
- XRT_PICTURE = CreateNewResourceType (XineramaDeleteResource); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
831 |
+ XRT_PICTURE = CreateNewResourceTypeNamed (XineramaDeleteResource, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
832 |
+ "XineramaPicture"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
833 |
for (i = 0; i < RenderNumberRequests; i++) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
834 |
PanoramiXSaveRenderVector[i] = ProcRenderVector[i]; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
835 |
/* |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
836 |
diff --git a/xfixes/cursor.c b/xfixes/cursor.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
837 |
index cd3df12..80038de 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
838 |
--- a/xfixes/cursor.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
839 |
+++ b/xfixes/cursor.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
840 |
@@ -1062,9 +1062,12 @@ XFixesCursorInit (void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
841 |
cs->pCursorHideCounts = NULL; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
842 |
SetCursorScreen (pScreen, cs); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
843 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
844 |
- CursorClientType = CreateNewResourceType(CursorFreeClient); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
845 |
- CursorHideCountType = CreateNewResourceType(CursorFreeHideCount); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
846 |
- CursorWindowType = CreateNewResourceType(CursorFreeWindow); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
847 |
+ CursorClientType = CreateNewResourceTypeNamed(CursorFreeClient, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
848 |
+ "XFixesCursorClient"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
849 |
+ CursorHideCountType = CreateNewResourceTypeNamed(CursorFreeHideCount, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
850 |
+ "XFixesCursorHideCount"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
851 |
+ CursorWindowType = CreateNewResourceTypeNamed(CursorFreeWindow, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
852 |
+ "XFixesCursorWindow"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
853 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
854 |
if (pInvisibleCursor == NULL) { |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
855 |
pInvisibleCursor = createInvisibleCursor(); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
856 |
diff --git a/xfixes/region.c b/xfixes/region.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
857 |
index 6db787f..e1d1a89 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
858 |
--- a/xfixes/region.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
859 |
+++ b/xfixes/region.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
860 |
@@ -63,7 +63,7 @@ XFixesRegionCopy (RegionPtr pRegion) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
861 |
Bool |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
862 |
XFixesRegionInit (void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
863 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
864 |
- RegionResType = CreateNewResourceType(RegionResFree); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
865 |
+ RegionResType = CreateNewResourceTypeNamed(RegionResFree, "XFixesRegion"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
866 |
return TRUE; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
867 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
868 |
|
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
869 |
diff --git a/xfixes/select.c b/xfixes/select.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
870 |
index 12a165f..bc10def 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
871 |
--- a/xfixes/select.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
872 |
+++ b/xfixes/select.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
873 |
@@ -279,7 +279,9 @@ SelectionFreeWindow (pointer data, XID id) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
874 |
Bool |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
875 |
XFixesSelectionInit (void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
876 |
{ |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
877 |
- SelectionClientType = CreateNewResourceType(SelectionFreeClient); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
878 |
- SelectionWindowType = CreateNewResourceType(SelectionFreeWindow); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
879 |
+ SelectionClientType = CreateNewResourceTypeNamed(SelectionFreeClient, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
880 |
+ "XFixesSelectionClient"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
881 |
+ SelectionWindowType = CreateNewResourceTypeNamed(SelectionFreeWindow, |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
882 |
+ "XFixesSelectionWindow"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
883 |
return SelectionClientType && SelectionWindowType; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
884 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
885 |
diff --git a/xkb/xkb.c b/xkb/xkb.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
886 |
index 30d58bf..2f09da6 100644 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
887 |
--- a/xkb/xkb.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
888 |
+++ b/xkb/xkb.c |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
889 |
@@ -6691,7 +6691,7 @@ XkbExtensionInit(void) |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
890 |
XkbEventBase = (unsigned char)extEntry->eventBase; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
891 |
XkbErrorBase = (unsigned char)extEntry->errorBase; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
892 |
XkbKeyboardErrorCode = XkbErrorBase+XkbKeyboard; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
893 |
- RT_XKBCLIENT = CreateNewResourceType(XkbClientGone); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
894 |
+ RT_XKBCLIENT = CreateNewResourceTypeNamed(XkbClientGone, "XkbClient"); |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
895 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
896 |
return; |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
897 |
} |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
898 |
-- |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
899 |
1.5.6.5 |
01a1b4688b04
6805015 Improved Xtsol extension debug infrastructure
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
900 |