XESetErrorString

Syntax

char  *(*XESetErrorString(display, extension, proc))()
      Display *display;
      int extension;
      char *(*proc)();

Arguments

display Specifies the connection to the X server.
extension Specifies the extension number.
proc Specifies the procedure to call to obtain an error string.

Description

The XGetErrorText() function returns a string to the user for an error. XESetErrorString() allows you to define a procedure to be called that should return a pointer to the error message. The following is an example.


(*proc)(display, code, codes, buffer, nbytes)
	Display *display;
	int code;
	XExtCodes *codes;
	char *buffer;
	int nbytes;

Your procedure is called with the error code for every error detected. You should copy nbytes of a null-terminated string containing the error message into buffer.

See also

XESetBeforeFlush(), XESetCloseDisplay(), XESetCopyGC(), XESetCreateFont(), XESetCreateGC(), XESetError(), XESetEventToWire(), XESetFlushGC(), XESetFreeFont(), XESetFreeGC(), XESetPrintErrorValues(), XESetWireToError(), XESetWireToEvent(), _XSetLastRequestRead(), "Hooks into the Library"
Christophe Tronche, [email protected]