mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-07 04:05:47 +00:00
On MacOS we're getting tons of warnings, because Xdefs.h also defining this type. In the longer run we should check whether to include Xdefs.h at all, but for the time being just doing a quick workaround. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
32 lines
866 B
C
32 lines
866 B
C
/* SPDX-License-Identifier: MIT OR X11
|
|
*
|
|
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
|
|
*
|
|
* @brief
|
|
* This header holds forward definitions for pointer types used in many places.
|
|
* Helpful for uncluttering the includes a bit, so we have less complex dependencies.
|
|
*
|
|
* External drivers rarely have a reason for directly including it.
|
|
*/
|
|
#ifndef _XLIBRE_SDK_PTRTYPES_H
|
|
#define _XLIBRE_SDK_PTRTYPES_H
|
|
|
|
struct _Client;
|
|
#ifndef _XTYPEDEF_CLIENTPTR
|
|
typedef struct _Client *ClientPtr;
|
|
# define _XTYPEDEF_CLIENTPTR
|
|
#endif
|
|
typedef struct _Client ClientRec;
|
|
|
|
struct _ClientId;
|
|
typedef struct _ClientId *ClientIdPtr;
|
|
|
|
struct _Window;
|
|
typedef struct _Window *WindowPtr;
|
|
typedef struct _Window WindowRec;
|
|
|
|
struct _ScrnInfoRec;
|
|
typedef struct _ScrnInfoRec *ScrnInfoPtr;
|
|
typedef struct _ScrnInfoRec ScrnInfoRec;
|
|
|
|
#endif /* _XLIBRE_SDK_PTRTYPES_H */
|