X Version 11 (Release 6.1)

XmuAddCloseDisplayHook(X3xmu)


XmuAddCloseDisplayHook -- add a callback to display

Synopsis

cc . . . -lXmu

#include <X11/Xmu/CloseHook.h>

CloseHook XmuAddCloseDisplayHook(dpy, func, arg) Display *dpy; int (*func)(); caddr_t arg;

Arguments


dpy
Specifies the connection to the X server.

func
Specifies the function to call at display close.

arg
Specifies arbitrary data to pass to func.

Description

The XmuAddCloseDisplayHook function adds a callback for the given display. When the display is closed, the given function will be called with the given display and argument as:
   (*func)(dpy, arg)
The function is declared to return an int even though the value is ignored, because some compilers have problems with functions returning void.

This routine returns NULL if it was unable to add the callback, otherwise it returns an opaque handle that can be used to remove or lookup the callback.

References

XmuRemoveCloseDisplayHook(X3xmu)
Xlib - C Language X Interface


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004