mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Move the callbacks directly into DIX, since it's actually core infrastructure. Also simplifying the whole machinery, by just using a simpel CallbackListPtr. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
27 lines
665 B
C
27 lines
665 B
C
/* SPDX-License-Identifier: MIT OR X11
|
|
*
|
|
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
|
|
*/
|
|
#ifndef _XSERVER_DIX_SERVER_PRIV_H
|
|
#define _XSERVER_DIX_SERVER_PRIV_H
|
|
|
|
#include "include/callback.h"
|
|
#include "include/dix.h"
|
|
|
|
typedef struct {
|
|
ClientPtr client;
|
|
Mask access_mode;
|
|
int status;
|
|
} ServerAccessCallbackParam;
|
|
|
|
extern CallbackListPtr ServerAccessCallback;
|
|
|
|
static inline int dixCallServerAccessCallback(ClientPtr client, Mask access_mode)
|
|
{
|
|
ServerAccessCallbackParam rec = { client, access_mode, Success };
|
|
CallCallbacks(&ServerAccessCallback, &rec);
|
|
return rec.status;
|
|
}
|
|
|
|
#endif /* _XSERVER_DIX_SERVER_PRIV_H */
|