diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-12-11 00:58:25 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-12-18 16:51:45 -0800 |
commit | a11c58fa0c5809f918b36b84be53385cb2d8ea59 (patch) | |
tree | d5b4416102f59a6abe3a86026bd6b5febb2ca26a /randr | |
parent | eb750f8b5e14751d4c40b50499baec5d2ba79db9 (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 'randr')
-rw-r--r-- | randr/randr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/randr/randr.c b/randr/randr.c index 594456485..7d59a6870 100644 --- a/randr/randr.c +++ b/randr/randr.c @@ -29,6 +29,8 @@ #include <dix-config.h> #endif +#include "registry.h" + #include "randrstr.h" /* From render.h */ @@ -339,9 +341,11 @@ RRExtensionInit (void) RRClientType = CreateNewResourceType(RRFreeClient); if (!RRClientType) return; + RegisterResourceName(RRClientType, "RandRClient"); RREventType = CreateNewResourceType(RRFreeEvents); if (!RREventType) return; + RegisterResourceName(RREventType, "RandREvent"); extEntry = AddExtension (RANDR_NAME, RRNumberEvents, RRNumberErrors, ProcRRDispatch, SProcRRDispatch, NULL, StandardMinorOpcode); |