summaryrefslogtreecommitdiff
path: root/shmscope.h
blob: 7d1245e6ef33edb24f20c820d563796481b88567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef _MITSHMSCOPE_H_
#define _MITSHMSCOPE_H_

#define MITSHMREQUESTHEADER  "MITSHMREQUEST"
#define MITSHMREPLYHEADER    "MITSHMREPLY"

/*
  To aid in making the choice between level 1 and level 2, we
  define the following define, which does not print relatively
  unimportant fields.
*/

#define printfield(a,b,c,d,e) if (Verbose > 1) PrintField(a,b,c,d,e)

extern unsigned char LookForMITSHMFlag;
extern unsigned char MITSHMRequest;
extern unsigned char MITSHMError;
extern unsigned char MITSHMEvent;

extern void MitshmQueryVersion		(FD fd, unsigned char *buf);
extern void MitshmQueryVersionReply	(FD fd, unsigned char *buf);
extern void MitshmAttach		(FD fd, unsigned char *buf);
extern void MitshmDetach		(FD fd, unsigned char *buf);
extern void MitshmPutImage		(FD fd, unsigned char *buf);
extern void MitshmGetImage		(FD fd, unsigned char *buf);
extern void MitshmGetImageReply		(FD fd, unsigned char *buf);
extern void MitshmCreatePixmap		(FD fd, unsigned char *buf);
extern void MitshmShmSegError		(FD fd, unsigned char *buf);

#endif