XESetPrintErrorValues

Syntax

void (*XESetPrintErrorValues(display, extension, proc))()
      Display *display;
      int extension;
      void (*proc)();

Arguments

display Specifies the connection to the X server.
extension Specifies the extension number.
proc Specifies the procedure to call when an error is printed.

Description

The XESetPrintErrorValues() function defines a procedure to be called when an extension error is printed, to print the error values. Use this function for extension errors that contain additional error values beyond those in a core X error. It returns any previously defined procedure.

When Xlib needs to print an error, the procedure is called with these arguments:


void (*proc)(display, ev, fp)
	Display *display;
	XErrorEvent *ev;
	void *fp;

The structure pointed at by ev is guaranteed to be as large as an XEvent structure and so can be cast to a type larger than an XErrorEvent to obtain additional values set by using XESetWireToError(). The underlying type of the fp argument is system dependent; on a POSIX-compliant system, fp should be cast to type FILE*.

See also

XESetBeforeFlush(), XESetCloseDisplay(), XESetCopyGC(), XESetCreateFont(), XESetCreateGC(), XESetError(), XESetErrorString(), XESetEventToWire(), XESetFlushGC(), XESetFreeFont(), XESetFreeGC(), XESetWireToError(), XESetWireToEvent(), _XSetLastRequestRead(), "Hooks into the Library"
Christophe Tronche, ch@tronche.com