Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XSetAfterFu(3x) — HP-UX ANSI C A.09.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XSetAfterFunction − set a function called after all Xlib functions. 

Synopsis

int (*XSetAfterFunction(display, procedure))()
Display *display;
int (*procedure)();

Arguments

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

procedureSpecifies the user-defined function to be called after each Xlib function.  This function is called with one argument, the display pointer. 

Description

All Xlib functions that generate protocol requests can call what is known as an after function after completing their work (normally, they don’t).  XSetAfterFunction() allows you to write a function to be called.  XSetAfterFunction() returns the previous after function.  XSynchronize() sets an after function to make sure that the input and request buffers are flushed after every Xlib routine.  For more information, see Volume One, Chapter 13, Other Programming Techniques. 

See Also

XGetErrorDatabaseText(), XGetErrorText(), XSetErrorHandler(), XSetIOErrorHandler(), XSynchronize(). 

Copyright O’Reilly & Assoc.  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026