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
# From "MIT-SHM - The MIT Shared Memory Extension"
29
 
30
+USE "x5/lib", "X11/Xlib.h" ;
31
 
32
+FUNC Status XShmQueryExtension ( Display * ) ;
33
+FUNC Status XShmQueryVersion ( Display *, int *, int *, Bool * ) ;
34
 
35
+TYPE ( int ) ShmSeg ;
36
 
37
+FIELD ( struct ) XShmSegmentInfo {
38
    ShmSeg shmseg ;
39
    int shmid ;
40
    char *shmaddr ;
41
    Bool readOnly ;
42
} ;
43
 
44
+FUNC Status XShmAttach ( Display *, XShmSegmentInfo * ) ;
45
+FUNC XImage *XShmCreateImage ( Display *, Visual *, unsigned int,
46
    int, char *, XShmSegmentInfo *, unsigned int, unsigned int ) ;
47
+FUNC Status XShmPutImage ( Display *, Drawable, GC, XImage *,
48
    int, int, int, int, unsigned int, unsigned int, Bool ) ;
49
 
50
+FIELD ( struct ) XShmCompletionEvent {
51
    int type ;
52
    unsigned long serial ;
53
    Bool send_event ;
54
    Display *display ;
55
    Drawable drawable ;
56
    int major_code ;
57
    int minor_code ;
58
    ShmSeg shmseg ;
59
    unsigned long offset ;
60
} ;
61
 
62
+FUNC int XShmGetEventBase ( Display * ) ;
63
+CONST int ShmCompletion ;
64
+FUNC Status XShmGetImage ( Display *, Drawable, XImage *, int, int,
65
    unsigned long ) ;
66
+FUNC int XShmPixmapFormat ( Display * ) ;
67
+FUNC Pixmap XShmCreatePixmap ( Display *, Drawable, char *,
68
    XShmSegmentInfo *, unsigned int, unsigned int, unsigned int ) ;