diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-12-02 17:43:01 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-12-18 17:44:12 -0800 |
commit | 895f40792a14d8b88923bf3b428d31ae3bb31e46 (patch) | |
tree | 3f53eecbf3ffea314ee657a0254925fe65510605 /hw/dmx/glxProxy | |
parent | a11c58fa0c5809f918b36b84be53385cb2d8ea59 (diff) |
Add type name argument to CreateNewResourceType
Convert all calls of CreateNewResourceType to pass name argument
Breaks DIX ABI.
ABI versions bumped:
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'hw/dmx/glxProxy')
-rw-r--r-- | hw/dmx/glxProxy/glxext.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/hw/dmx/glxProxy/glxext.c b/hw/dmx/glxProxy/glxext.c index c00ae6ee5..6cd8bb41a 100644 --- a/hw/dmx/glxProxy/glxext.c +++ b/hw/dmx/glxProxy/glxext.c @@ -44,7 +44,6 @@ #include "glxvisuals.h" #include "micmap.h" #include "glxswap.h" -#include "registry.h" /* ** Stubs to satisfy miinitext.c references. @@ -294,22 +293,21 @@ void GlxExtensionInit(void) return; } - __glXContextRes = CreateNewResourceType((DeleteType)ContextGone); - __glXClientRes = CreateNewResourceType((DeleteType)ClientGone); - __glXPixmapRes = CreateNewResourceType((DeleteType)PixmapGone); - __glXWindowRes = CreateNewResourceType((DeleteType)WindowGone); - __glXPbufferRes = CreateNewResourceType((DeleteType)PbufferGone); + __glXContextRes = CreateNewResourceType((DeleteType)ContextGone, + "GLXContext"); + __glXClientRes = CreateNewResourceType((DeleteType)ClientGone, + "GLXClient"); + __glXPixmapRes = CreateNewResourceType((DeleteType)PixmapGone, + "GLXPixmap"); + __glXWindowRes = CreateNewResourceType((DeleteType)WindowGone, + "GLXWindow"); + __glXPbufferRes = CreateNewResourceType((DeleteType)PbufferGone, + "GLXPbuffer"); if (!__glXContextRes || !__glXClientRes || !__glXPixmapRes || !__glXWindowRes || !__glXPbufferRes) return; - RegisterResourceName(__glXContextRes, "GLXContext"); - RegisterResourceName(__glXClientRes, "GLXClient"); - RegisterResourceName(__glXPixmapRes, "GLXPixmap"); - RegisterResourceName(__glXWindowRes, "GLXWindow"); - RegisterResourceName(__glXPbufferRes, "GLXPbuffer"); - /* ** Add extension to server extensions. */ |