[ Previous | Next | Contents | Glossary | Home | Search ]
x11 R6 Technical Reference

XESetError Extension Function

Purpose

Suppresses the call to an external error handling routine and defines an alternative routine for error handling.

Library

Enhanced X-Windows Library (libX11.a)

C Syntax

int (*XESetError(DisplayPtr, Extension, Procedure))()
Display *DisplayPtr;
int Extension;
int (*Procedure)();

Description

The XESetError extension function suppresses the call to an external error handling routine and defines an alternative routine for error handling. This extension function allows status to be returned on a call at the cost of the call being synchronous (though most such routines are query operations and are typically programmed to be synchronous).

When the Xlib library detects a protocol error in the _XReply extension function, it calls the procedure with the following:

int (*Procedure)(DisplayPtr, Error, Codes, ReturnCode);
Display *DisplayPtr;
xError *Error;
XExtCodes *Codes;
int *ReturnCode;

where:

Parameters

DisplayPtr Specifies a display device.
Extension Specifies an extension number.
Procedure Specifies a routine to call when an error code is received.

Return Values

0 Indicates that the error is not suppressed and the client's error handler is called.
Nonzero Indicates that the error is suppressed and the _XReply extension function returns the value in the ReturnCode parameter.

Related Information

Using Extensions in AIXwindows in AIX Version 4.3 AIXwindows Programming Guide.

The _XReply extension function.

AIXwindows Overview for Programmers in AIX Version 4.3 AIXwindows Programming Guide.


[ Previous | Next | Contents | Glossary | Home | Search ]