1 #ifndef MODULE_H
2 #define MODULE_H
3 
4 struct queue_buff_struct
5 {
6   struct queue_buff_struct *next;
7   unsigned long *data;
8   int size;
9   int done;
10 };
11 
12 extern int npipes;
13 extern int *readPipes;
14 extern int *writePipes;
15 extern struct queue_buff_struct **pipeQueue;
16 
17 #define START_FLAG 0xffffffff
18 
19 #define M_TOGGLE_PAGING      (1<<0)
20 #define M_NEW_PAGE           (1<<1)
21 #define M_NEW_DESK           (1<<2)
22 #define M_ADD_WINDOW         (1<<3)
23 #define M_RAISE_WINDOW       (1<<4)
24 #define M_LOWER_WINDOW       (1<<5)
25 #define M_CONFIGURE_WINDOW   (1<<6)
26 #define M_FOCUS_CHANGE       (1<<7)
27 #define M_DESTROY_WINDOW     (1<<8)
28 #define M_ICONIFY            (1<<9)
29 #define M_DEICONIFY          (1<<10)
30 #define M_WINDOW_NAME        (1<<11)
31 #define M_ICON_NAME          (1<<12)
32 #define M_RES_CLASS          (1<<13)
33 #define M_RES_NAME           (1<<14)
34 #define M_END_WINDOWLIST     (1<<15)
35 #define M_ICON_LOCATION      (1<<16)
36 #define M_MAP                (1<<17)
37 #define M_SHADE		     (1<<18)
38 #define M_UNSHADE	     (1<<19)
39 #define M_LOCKONSEND         (1<<20)
40 
41 #define MAX_MESSAGES          21
42 #define MAX_MASK             ((1<<MAX_MESSAGES)-1&~M_LOCKONSEND)
43 
44 /* M_LOCKONSEND when set causes afterstep to wait for the module to send an
45  * unlock message back, needless to say, we wouldn't want this on by default
46  */
47 
48 #define HEADER_SIZE         3
49 #define MAX_PACKET_SIZE    27
50 #define MAX_BODY_SIZE      (MAX_PACKET_SIZE - HEADER_SIZE)
51 
52 #endif /* MODULE_H */
53 
54