mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 22:12:23 +00:00
This patch exports ConnectionInfo in server_priv.h and references it in globals.c to force exporting. Signed-off-by: Oleh Nykyforchyn <oleh.nyk@gmail.com>
30 lines
754 B
C
30 lines
754 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;
|
|
}
|
|
|
|
/* NVidia v.390 proprietary driver needs this */
|
|
extern _X_EXPORT char *ConnectionInfo;
|
|
|
|
#endif /* _XSERVER_DIX_SERVER_PRIV_H */
|