mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-14 05:14:45 +00:00
xaverius: initialize property name atoms
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
ce0ff3d249
commit
5d6a07fe62
2 changed files with 23 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
#include <dix-config.h>
|
||||
|
||||
#include "dix/dix_priv.h"
|
||||
#include "include/extnsionst.h"
|
||||
#include "include/privates.h"
|
||||
#include "miext/extinit_priv.h"
|
||||
|
|
@ -15,6 +16,12 @@ Bool noXaveriusExtension = TRUE;
|
|||
|
||||
int XaveriusEventBase = 0;
|
||||
|
||||
Atom xaverius_atom_device_uuid = 0;
|
||||
Atom xaverius_atom_driver_uuid = 0;
|
||||
Atom xaverius_atom_max_work_group_invocations = 0;
|
||||
Atom xaverius_atom_max_work_group_size = 0;
|
||||
Atom xaverius_atom_timeline_semaphore = 0;
|
||||
|
||||
static void XaveriusExtensionFini(ExtensionEntry *extEntry)
|
||||
{
|
||||
}
|
||||
|
|
@ -37,5 +44,12 @@ void XaveriusExtensionInit(void)
|
|||
FatalError("failed to register Xaverius screen private key\n");
|
||||
}
|
||||
|
||||
/* Initialize property atoms */
|
||||
xaverius_atom_device_uuid = dixAddAtom("XAverius.deviceUUID");
|
||||
xaverius_atom_driver_uuid = dixAddAtom("XAverius.driverUUID");
|
||||
xaverius_atom_max_work_group_invocations = dixAddAtom("XAverius.compute.maxWorkGroupInvocations");
|
||||
xaverius_atom_max_work_group_size = dixAddAtom("XAverius.compute.maxWorkGroupSize");
|
||||
xaverius_atom_timeline_semaphore = dixAddAtom("XAverius.timelineSemaphore");
|
||||
|
||||
LogMessage(X_INFO, "Xaverius extension initialized\n");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
#ifndef _XLIBRE_XAVERIUS_INTERN_H
|
||||
#define _XLIBRE_XAVERIUS_INTERN_H
|
||||
|
||||
#include <X11/Xdefs.h>
|
||||
|
||||
#include "include/privates.h"
|
||||
#include "include/xlibre_ptrtypes.h"
|
||||
|
||||
|
|
@ -14,6 +16,13 @@ extern int XaveriusEventBase;
|
|||
|
||||
extern DevPrivateKeyRec XaveriusScreenPrivateKeyRec;
|
||||
|
||||
/* Global property atoms (initialized in init.c) */
|
||||
extern Atom xaverius_atom_device_uuid;
|
||||
extern Atom xaverius_atom_driver_uuid;
|
||||
extern Atom xaverius_atom_max_work_group_invocations;
|
||||
extern Atom xaverius_atom_max_work_group_size;
|
||||
extern Atom xaverius_atom_timeline_semaphore;
|
||||
|
||||
int ProcXaveriusDispatch(ClientPtr client);
|
||||
|
||||
#endif /* _XLIBRE_XAVERIUS_INTERN_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue