Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
# Needed for extensions (Appendix C)
29
 
30
+USE "x5/lib", "X11/Xlib.h" ;		# see 1.3
31
+USE "x5/lib", "X11/Xproto.h" ;		# see 1.3
32
+USE "ansi", "stddef.h", "size_t" (!?) ;
33
 
34
# RCA : GetReq, GetReqExtra, GetResReq, GetEmptyReq
35
 
36
+CONST int EPERBATCH ;
37
 
38
+FUNC void LockDisplay ( Display * ) ;
39
+FUNC void UnlockDisplay ( Display * ) ;
40
 
41
+STATEMENT Data ( Display *, char *, long ) ;
42
+STATEMENT Data16 ( Display *, short *, long ) ;
43
+STATEMENT Data32 ( Display *, long *, long ) ;
44
 
45
+FUNC void _XSend ( Display *, char *, long ) ;
46
+FUNC void _XReply ( Display *, xReply *, int, Bool ) ;
47
+FUNC void _XRead ( Display *, char *, long ) ;
48
+FUNC void _XRead16 ( Display *, short *, long ) ;
49
+FUNC void _XRead32 ( Display *, long *, long ) ;
50
+FUNC void _XReadPad ( Display *, char *, long ) ;
51
+FUNC void _XRead16Pad ( Display *, short *, long ) ;
52
 
53
+STATEMENT PackData ( Display *, char *, long ) ;
54
+STATEMENT PackData16 ( Display *, short *, long ) ;
55
+STATEMENT PackData32 ( Display *, long *, long ) ;
56
 
57
+STATEMENT __MySyncHandle ( Display * ) ;
58
+IFNDEF ~building_libs
59
+DEFINE SyncHandle ()	%% __MySyncHandle( dpy ) %% ;
60
+ENDIF
61
 
62
+FUNC void *Xmalloc ( size_t ) ;
63
+FUNC void *Xcalloc ( size_t, size_t ) ;
64
+FUNC void *Xrealloc ( void *, size_t ) ;
65
+FUNC void Xfree ( void * ) ;
66
+FUNC char *_XAllocScratch ( Display *, unsigned long ) ;