2 |
7u83 |
1 |
# Crown Copyright (c) 1997
|
|
|
2 |
#
|
|
|
3 |
# This TenDRA(r) Computer Program is subject to Copyright
|
|
|
4 |
# owned by the United Kingdom Secretary of State for Defence
|
|
|
5 |
# acting through the Defence Evaluation and Research Agency
|
|
|
6 |
# (DERA). It is made available to Recipients with a
|
|
|
7 |
# royalty-free licence for its use, reproduction, transfer
|
|
|
8 |
# to other parties and amendment for any purpose not excluding
|
|
|
9 |
# product development provided that any such use et cetera
|
|
|
10 |
# shall be deemed to be acceptance of the following conditions:-
|
|
|
11 |
#
|
|
|
12 |
# (1) Its Recipients shall ensure that this Notice is
|
|
|
13 |
# reproduced upon any copies or amended versions of it;
|
|
|
14 |
#
|
|
|
15 |
# (2) Any amended version of it shall be clearly marked to
|
|
|
16 |
# show both the nature of and the organisation responsible
|
|
|
17 |
# for the relevant amendment or amendments;
|
|
|
18 |
#
|
|
|
19 |
# (3) Its onward transfer from a recipient to another
|
|
|
20 |
# party shall be deemed to be that party's acceptance of
|
|
|
21 |
# these conditions;
|
|
|
22 |
#
|
|
|
23 |
# (4) DERA gives no warranty or assurance as to its
|
|
|
24 |
# quality or suitability for any purpose and DERA accepts
|
|
|
25 |
# no liability whatsoever in relation to any use to which
|
|
|
26 |
# it may be put.
|
|
|
27 |
#
|
|
|
28 |
+USE "xpg3", "sys/types.h", "caddr_t" (!?) ;
|
|
|
29 |
+USE "x5/t", "X11/Intrinsic.h" ;
|
|
|
30 |
+USE "x5/mu", "X11/Xmu/CloseHook.h" (!?) ;
|
|
|
31 |
|
|
|
32 |
+TYPE ( struct ) XmuDisplayQueueEntry ;
|
|
|
33 |
|
|
|
34 |
+FIELD XmuDisplayQueueEntry := {
|
|
|
35 |
XmuDisplayQueueEntry *prev ;
|
|
|
36 |
XmuDisplayQueueEntry *next ;
|
|
|
37 |
Display *display ;
|
|
|
38 |
CloseHook closehook ;
|
|
|
39 |
caddr_t data ;
|
|
|
40 |
} ;
|
|
|
41 |
|
|
|
42 |
+TYPE ( struct ) XmuDisplayQueue ;
|
|
|
43 |
|
|
|
44 |
+FIELD XmuDisplayQueue := {
|
|
|
45 |
int nentries ;
|
|
|
46 |
XmuDisplayQueueEntry *head ;
|
|
|
47 |
XmuDisplayQueueEntry *tail ;
|
|
|
48 |
int ( *closefunc ) () ;
|
|
|
49 |
int ( *freefunc ) () ;
|
|
|
50 |
caddr_t data ;
|
|
|
51 |
} ;
|
|
|
52 |
|
|
|
53 |
+FUNC XmuDisplayQueue *XmuDQCreate ( int (*) (), int (*) (), caddr_t ) ;
|
|
|
54 |
+FUNC XmuDisplayQueueEntry *XmuDQAddDisplay ( XmuDisplayQueue *,
|
|
|
55 |
Display *, caddr_t ) ;
|
|
|
56 |
+FUNC XmuDisplayQueueEntry *XmuDQLookupDisplay ( XmuDisplayQueue *,
|
|
|
57 |
Display * ) ;
|
|
|
58 |
+MACRO int XmuDQNDisplays ( XmuDisplayQueue * ) ;
|
|
|
59 |
+FUNC Bool XmuDQRemoveDisplay ( XmuDisplayQueue *, Display * ) ;
|
|
|
60 |
+FUNC Bool XmuDQDestroy ( XmuDisplayQueue *, Bool ) ;
|