|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: D T
Length: 2564 (0xa04)
Types: TextFile
Names: »DisplayQue.h«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦19b5af8a1⟧ »0006«
└─⟦this⟧ »./usr/include/X11/Xmu/DisplayQue.h«
/* Coopyright 1989 Massachusetts Institute of Technology */
#include <X11/Xmu/CloseHook.h>
/*
* Public Entry Points
*
*
* XmuDisplayQueue *XmuDQCreate (closefunc, freefunc, data)
* int (*closefunc)();
* int (*freefunc)();
* caddr_t data;
*
* Creates and returns a queue into which displays may be placed. When
* the display is closed, the closefunc (if non-NULL) is upcalled with
* as follows:
*
* (*closefunc) (queue, entry)
*
* The freeproc, if non-NULL, is called whenever the last display is
* closed, notifying the creator that display queue may be released
* using XmuDQDestroy.
*
*
* Bool XmuDQDestroy (q, docallbacks)
* XmuDisplayQueue *q;
* Bool docallbacks;
*
* Releases all memory for the indicated display queue. If docallbacks
* is true, then the closefunc (if non-NULL) is called for each
* display.
*
*
* XmuDisplayQueueEntry *XmuDQLookupDisplay (q, dpy)
* XmuDisplayQueue *q;
* Display *dpy;
*
* Returns the queue entry for the specified display or NULL if the
* display is not in the queue.
*
*
* XmuDisplayQueueEntry *XmuDQAddDisplay (q, dpy, data)
* XmuDisplayQueue *q;
* Display *dpy;
* caddr_t data;
*
* Adds the indicated display to the end of the queue or NULL if it
* is unable to allocate memory. The data field may be used by the
* caller to attach arbitrary data to this display in this queue. The
* caller should use XmuDQLookupDisplay to make sure that the display
* hasn't already been added.
*
*
* Bool XmuDQRemoveDisplay (q, dpy)
* XmuDisplayQueue *q;
* Display *dpy;
*
* Removes the specified display from the given queue. If the
* indicated display is not found on this queue, False is returned,
* otherwise True is returned.
*/
typedef struct _XmuDisplayQueueEntry {
struct _XmuDisplayQueueEntry *prev, *next;
Display *display;
CloseHook closehook;
caddr_t data;
} XmuDisplayQueueEntry;
typedef struct _XmuDisplayQueue {
int nentries;
XmuDisplayQueueEntry *head, *tail;
int (*closefunc)();
int (*freefunc)();
caddr_t data;
} XmuDisplayQueue;
extern XmuDisplayQueue *XmuDQCreate ();
extern Bool XmuDQDestroy ();
extern XmuDisplayQueueEntry *XmuDQLookupDisplay ();
extern XmuDisplayQueueEntry *XmuDQAddDisplay ();
extern Bool XmuDQRemoveDisplay ();
#define XmuDQNDisplays(q) ((q)->nentries)