Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ AddClsDspHk(3X) — DeltaWindows 1.3.3 Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XmuAddCloseDisplayHook — add callback function to be called when display connection is closed. 

SYNOPSIS

#include <X11/Xmu/CloseHook.h>

CloseHook XmuAddCloseDisplayHook(display, func, arg)
      Display ∗display;
      int(∗func)();
      caddr_t arg;

ARGUMENTS

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

funcSpecifies the function to call at display close. 

argSpecifies arbitrary data to pass to func. 

DESCRIPTION

XmuAddCloseDisplayHook registers 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)(display, arg) The function is declared to return 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. 

SEE ALSO

XmuAddCloseDisplayHook, XmuLookupCloseDisplayHook, XmuRemoveCloseDisplayHook. 

Xlib Reference Manual

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