XESetBeforeFlush

Syntax

int (*XESetBeforeFlush(display, extension, proc))()
      Display *display;
      int extension;
      int *(*proc)();

Arguments

display Specifies the connection to the X server.
extension Specifies the extension number.
proc Specifies the procedure to call when a buffer is flushed.

Description

The XESetBeforeFlush() function defines a procedure to be called when data is about to be sent to the server. When data is about to be sent, your procedure is called one or more times with these arguments:


void (*proc)(display, codes, data, len)
	Display *display;
	XExtCodes *codes;
	char *data;
	long len;

The data argument specifies a portion of the outgoing data buffer, and its length in bytes is specified by the len argument. Your procedure must not alter the contents of the data, and must not do additional protocol requests to the same display.

See also

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