xserver/render/picturestr_priv.h
Enrico Weigelt, metux IT consult 6ddade2e6a render: move private definitions out of picturestr.h
Public module API headers don't need / shouldn't to contain anything that
isn't part of the API (non-exported functions, etc).

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1287>
2024-03-03 22:54:16 +00:00

46 lines
1.2 KiB
C

/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
* Copyright © 2000 SuSE, Inc.
*/
#ifndef _XSERVER_PICTURESTR_PRIV_H_
#define _XSERVER_PICTURESTR_PRIV_H_
#include "picturestr.h"
#include "scrnintstr.h"
#include "glyphstr.h"
#include "resource.h"
#include "privates.h"
#define PICT_GRADIENT_STOPTABLE_SIZE 1024
extern RESTYPE PictureType;
extern RESTYPE PictFormatType;
extern RESTYPE GlyphSetType;
#define VERIFY_PICTURE(pPicture, pid, client, mode) {\
int tmprc = dixLookupResourceByType((void *)&(pPicture), pid,\
PictureType, client, mode);\
if (tmprc != Success)\
return tmprc;\
}
#define VERIFY_ALPHA(pPicture, pid, client, mode) {\
if (pid == None) \
pPicture = 0; \
else { \
VERIFY_PICTURE(pPicture, pid, client, mode); \
} \
} \
Bool AnimCurInit(ScreenPtr pScreen);
int AnimCursorCreate(CursorPtr *cursors, CARD32 *deltas, int ncursor,
CursorPtr *ppCursor, ClientPtr client, XID cid);
#ifdef PANORAMIX
void PanoramiXRenderInit(void);
void PanoramiXRenderReset(void);
#endif /* PANORAMIX */
#endif /* _XSERVER_PICTURESTR_PRIV_H_ */