summaryrefslogtreecommitdiff
path: root/Xext/xvmain.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-12-11 00:58:25 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-12-18 16:51:45 -0800
commita11c58fa0c5809f918b36b84be53385cb2d8ea59 (patch)
treed5b4416102f59a6abe3a86026bd6b5febb2ca26a /Xext/xvmain.c
parenteb750f8b5e14751d4c40b50499baec5d2ba79db9 (diff)
Ensure all resource types created have names registered
Calls RegisterResourceName to record the type name for use by X-Resource, XACE/SELinux/XTsol, and DTrace. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Xext/xvmain.c')
-rw-r--r--Xext/xvmain.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/Xext/xvmain.c b/Xext/xvmain.c
index 7c8a3c3d4..c33c209a9 100644
--- a/Xext/xvmain.c
+++ b/Xext/xvmain.c
@@ -90,6 +90,7 @@ SOFTWARE.
#include "extnsionst.h"
#include "dixstruct.h"
#include "resource.h"
+#include "registry.h"
#include "opaque.h"
#include "input.h"
@@ -213,36 +214,42 @@ CreateResourceTypes(void)
ErrorF("CreateResourceTypes: failed to allocate port resource.\n");
return FALSE;
}
-
+ RegisterResourceName(XvRTPort, "XvRTPort");
+
if (!(XvRTGrab = CreateNewResourceType(XvdiDestroyGrab)))
{
ErrorF("CreateResourceTypes: failed to allocate grab resource.\n");
return FALSE;
}
-
+ RegisterResourceName(XvRTGrab, "XvRTGrab");
+
if (!(XvRTEncoding = CreateNewResourceType(XvdiDestroyEncoding)))
{
ErrorF("CreateResourceTypes: failed to allocate encoding resource.\n");
return FALSE;
}
-
+ RegisterResourceName(XvRTEncoding, "XvRTEncoding");
+
if (!(XvRTVideoNotify = CreateNewResourceType(XvdiDestroyVideoNotify)))
{
ErrorF("CreateResourceTypes: failed to allocate video notify resource.\n");
return FALSE;
}
-
+ RegisterResourceName(XvRTVideoNotify, "XvRTVideoNotify");
+
if (!(XvRTVideoNotifyList = CreateNewResourceType(XvdiDestroyVideoNotifyList)))
{
ErrorF("CreateResourceTypes: failed to allocate video notify list resource.\n");
return FALSE;
}
+ RegisterResourceName(XvRTVideoNotifyList, "XvRTVideoNotifyList");
if (!(XvRTPortNotify = CreateNewResourceType(XvdiDestroyPortNotify)))
{
ErrorF("CreateResourceTypes: failed to allocate port notify resource.\n");
return FALSE;
}
+ RegisterResourceName(XvRTPortNotify, "XvRTPortNotify");
return TRUE;