(!2007) dix: unexport SendGraphicsExpose() and fix parameter types

* not used by any drivers, so no need to keep it exported
* fix parameter types to matching the protocol types

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-23 12:23:35 +02:00
parent a94e906084
commit a58fd6f511
3 changed files with 17 additions and 7 deletions

View File

@ -1726,7 +1726,7 @@ ProcClearToBackground(ClientPtr client)
/* send GraphicsExpose events, or a NoExpose event, based on the region */ /* send GraphicsExpose events, or a NoExpose event, based on the region */
void void
SendGraphicsExpose(ClientPtr client, RegionPtr pRgn, XID drawable, SendGraphicsExpose(ClientPtr client, RegionPtr pRgn, XID drawable,
int major, int minor) CARD8 major, CARD16 minor)
{ {
if (pRgn && !RegionNil(pRgn)) { if (pRgn && !RegionNil(pRgn)) {
xEvent *pEvent; xEvent *pEvent;

View File

@ -390,4 +390,20 @@ void SendErrorToClient(ClientPtr pClient,
BYTE errorCode) BYTE errorCode)
_X_ATTRIBUTE_NONNULL_ARG(1); _X_ATTRIBUTE_NONNULL_ARG(1);
/*
* @brief send GraphicsExposure events for given region to client
* Sends a series of GraphicsExposure events spanning the given region to the
* client. If region is empty or NULL, sending NoExpose event instead.
*
+ @param pClient the client to send events to
* @param pRegion the region the events are based on
* @param drawable ID of the drawable the events are related to
* @param majorOpcode major opcode of request which caused the expose event
* @param minorOpcode minor opcode of request which caused the expose event
*/
void SendGraphicsExpose(ClientPtr pClient, RegionPtr pRegion, XID drawable,
BYTE majorOpcode, CARD16 minorOpcode)
_X_ATTRIBUTE_NONNULL_ARG(1);
#endif /* _XSERVER_DIX_PRIV_H */ #endif /* _XSERVER_DIX_PRIV_H */

View File

@ -210,12 +210,6 @@ extern _X_EXPORT Bool QueueWorkProc(Bool (*function)(ClientPtr clientUnused,
ClientPtr client, ClientPtr client,
void *closure); void *closure);
extern _X_EXPORT void SendGraphicsExpose(ClientPtr /*client */ ,
RegionPtr /*pRgn */ ,
XID /*drawable */ ,
int /*major */ ,
int /*minor */);
/* atom.c */ /* atom.c */
extern _X_EXPORT Atom MakeAtom(const char * /*string */ , extern _X_EXPORT Atom MakeAtom(const char * /*string */ ,