dix: unexport SendErrorToClient() 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:
parent
689de526a4
commit
a94e906084
|
@ -3820,8 +3820,8 @@ ProcEstablishConnection(ClientPtr client)
|
|||
}
|
||||
|
||||
void
|
||||
SendErrorToClient(ClientPtr client, unsigned majorCode, unsigned minorCode,
|
||||
XID resId, int errorCode)
|
||||
SendErrorToClient(ClientPtr client, CARD8 majorCode, CARD16 minorCode,
|
||||
XID resId, BYTE errorCode)
|
||||
{
|
||||
xError rep = {
|
||||
.type = X_Error,
|
||||
|
|
|
@ -374,4 +374,20 @@ void ClientWakeup(ClientPtr pclient)
|
|||
Bool ClientIsAsleep(ClientPtr pClient)
|
||||
_X_ATTRIBUTE_NONNULL_ARG(1);
|
||||
|
||||
/*
|
||||
* @brief send error packet (xError) to client
|
||||
*
|
||||
* @param pClient pointer to client structure
|
||||
* @param majorCode major opcode of failed request
|
||||
* @param minorCode minor opcode of failed request
|
||||
* @param resId ID of resource the failure occured on
|
||||
* @param errorCode error code value
|
||||
*/
|
||||
void SendErrorToClient(ClientPtr pClient,
|
||||
CARD8 majorCode,
|
||||
CARD16 minorCode,
|
||||
XID resId,
|
||||
BYTE errorCode)
|
||||
_X_ATTRIBUTE_NONNULL_ARG(1);
|
||||
|
||||
#endif /* _XSERVER_DIX_PRIV_H */
|
||||
|
|
|
@ -162,12 +162,6 @@ extern _X_EXPORT void UpdateCurrentTimeIf(void);
|
|||
*/
|
||||
_X_EXPORT int dixDestroyPixmap(void *pPixmap, XID unused);
|
||||
|
||||
extern _X_EXPORT void SendErrorToClient(ClientPtr /*client */ ,
|
||||
unsigned int /*majorCode */ ,
|
||||
unsigned int /*minorCode */ ,
|
||||
XID /*resId */ ,
|
||||
int /*errorCode */ );
|
||||
|
||||
/* dixutils.c */
|
||||
|
||||
extern _X_EXPORT int dixLookupWindow(WindowPtr *result,
|
||||
|
|
Loading…
Reference in New Issue