CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
queue_defs.h
Go to the documentation of this file.
1 #ifndef EVENTFILTER_UTILITIES_QUEUE_DEFS_H
2 #define EVENTFILTER_UTILITIES_QUEUE_DEFS_H
3 
4 /*
5  * queue_defs.h - common macros and definitions for the public message
6  * queue
7  */
8 
9 #define QUEUE_ID 137 /* base ID of queue to generate.M->S = odd, S->M = even */
10 #define MAX_MSG_SIZE 0x8000 /* size (in bytes) of largest message we'll ever send.
11  This is the system max */
12 
13 #define MSGQ_MESSAGE_TYPE_RANGE 0xfff
14 
15 #define MSQM_MESSAGE_TYPE_NOP 0x000
16 #define MSQM_MESSAGE_TYPE_STOP 0x002
17 #define MSQM_MESSAGE_TYPE_FSTOP 0x003
18 #define MSQM_MESSAGE_TYPE_MCS 0x004
19 #define MSQM_MESSAGE_TYPE_PRG 0x008
20 #define MSQM_MESSAGE_TYPE_WEB 0x00a
21 #define MSQM_MESSAGE_TYPE_TRP 0x00c
22 #define MSQM_VULTURE_TYPE_STA 0x00e
23 #define MSQM_VULTURE_TYPE_STP 0x010
24 #define MSQM_MESSAGE_TYPE_RLI 0x012
25 #define MSQM_MESSAGE_TYPE_RLR 0x014
26 #define MSQM_MESSAGE_TYPE_CRASH 0x016
27 
28 #define MSQS_MESSAGE_TYPE_NOP 0x000
29 #define MSQS_MESSAGE_TYPE_SLA 0x200
30 #define MSQS_MESSAGE_TYPE_MCR 0x202
31 #define MSQS_MESSAGE_TYPE_STOP 0x204
32 #define MSQS_MESSAGE_TYPE_PRR 0x208
33 #define MSQS_MESSAGE_TYPE_WEB 0x20a
34 #define MSQS_MESSAGE_TYPE_TRR 0x20c
35 #define MSQS_VULTURE_TYPE_ACK 0x20e
36 #define MSQS_VULTURE_TYPE_DON 0x210
37 
38 #define NUMERIC_MESSAGE_SIZE 32
39 
40 #define PIPE_READ 0
41 #define PIPE_WRITE 1
42 #define MAX_PIPE_BUFFER_SIZE 0x1000
43 
44 #include <sys/msg.h>
45 #ifdef __APPLE__
46 // Unsupported on macosx. We define a dummy msgbuf struct just to make sure it
47 // compiles fine.
48 struct msgbuf
49  {
50  unsigned long int mtype; /* type of received/sent message */
51  char mtext[1]; /* message payload */
52  };
53 #endif
54 
55 namespace evf{
56  struct prg{
57  prg():ls(0),eols(0),ps(0),nbp(0),nba(0),Ms(0),ms(0),dqm(0),trp(0){}
58  unsigned int ls;
59  unsigned int eols;
60  unsigned int ps;
61  unsigned int nbp;
62  unsigned int nba;
63  unsigned int Ms;
64  unsigned int ms;
65  unsigned int dqm;
66  unsigned int trp;
67  };
68 
69 
70 }
71 
72 #endif /* QUEUE_DEFS_H */
unsigned int ps
Definition: queue_defs.h:60
unsigned int eols
Definition: queue_defs.h:59
unsigned int nbp
Definition: queue_defs.h:61
unsigned int ls
Definition: queue_defs.h:58
unsigned int Ms
Definition: queue_defs.h:63
unsigned int nba
Definition: queue_defs.h:62
unsigned int trp
Definition: queue_defs.h:66
unsigned int dqm
Definition: queue_defs.h:65
unsigned int ms
Definition: queue_defs.h:64