summaryrefslogtreecommitdiff
path: root/randrscope.h
blob: 5b63b067fe0cb5ceb41c03169e4a32f3771eaf43 (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
#ifndef _RANDRSCOPE_H_
#define _RANDRSCOPE_H_

#define RANDRREQUESTHEADER  "RANDRREQUEST"
#define RANDRREPLYHEADER    "RANDRREPLY"

/*
  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 RANDRRequest;
extern unsigned char RANDREvent;

extern void RandrQueryVersion (FD fd, const unsigned char *buf);
extern void RandrQueryVersionReply (FD fd, const unsigned char *buf);
extern void RandrGetScreenInfo (FD fd, const unsigned char *buf);
extern void RandrGetScreenInfoReply (FD fd, const unsigned char *buf);
extern void RandrSetScreenConfig (FD fd, const unsigned char *buf);
extern void RandrSetScreenConfigReply (FD fd, const unsigned char *buf);
extern void RandrScreenChangeSelectInput (FD fd, const unsigned char *buf);
extern void RandrScreenSizes (const unsigned char *buf);
extern void RandrScreenChangeNotifyEvent (const unsigned char *buf);

#endif