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 0x2000 /* 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_MCS 0x004
18 #define MSQM_MESSAGE_TYPE_PRG 0x008
19 #define MSQM_MESSAGE_TYPE_WEB 0x00a
20 #define MSQM_MESSAGE_TYPE_TRP 0x00c
21 #define MSQM_VULTURE_TYPE_STA 0x00e
22 #define MSQM_VULTURE_TYPE_STP 0x010
23 
24 
25 #define MSQS_MESSAGE_TYPE_NOP 0x000
26 #define MSQS_MESSAGE_TYPE_SLA 0x200
27 #define MSQS_MESSAGE_TYPE_MCR 0x202
28 #define MSQS_MESSAGE_TYPE_STOP 0x204
29 #define MSQS_MESSAGE_TYPE_PRR 0x208
30 #define MSQS_MESSAGE_TYPE_WEB 0x20a
31 #define MSQS_MESSAGE_TYPE_TRR 0x20c
32 #define MSQS_VULTURE_TYPE_ACK 0x20e
33 #define MSQS_VULTURE_TYPE_DON 0x210
34 
35 #define NUMERIC_MESSAGE_SIZE 32
36 
37 #define PIPE_READ 0
38 #define PIPE_WRITE 1
39 #define MAX_PIPE_BUFFER_SIZE 0x1000
40 
41 #include <sys/msg.h>
42 #ifdef __APPLE__
43 // Unsupported on macosx. We define a dummy msgbuf struct just to make sure it
44 // compiles fine.
45 struct msgbuf
46  {
47  unsigned long int mtype; /* type of received/sent message */
48  char mtext[1]; /* message payload */
49  };
50 #endif
51 
52 namespace evf{
53  struct prg{
54  prg():ls(0),ps(0),nbp(0),nba(0),Ms(0),ms(0),dqm(0),trp(0){}
55  unsigned int ls;
56  unsigned int ps;
57  unsigned int nbp;
58  unsigned int nba;
59  unsigned int Ms;
60  unsigned int ms;
61  unsigned int dqm;
62  unsigned int trp;
63  };
64 
65 
66 }
67 
68 #endif /* QUEUE_DEFS_H */
unsigned int ps
Definition: queue_defs.h:56
unsigned int nbp
Definition: queue_defs.h:57
unsigned int ls
Definition: queue_defs.h:55
unsigned int Ms
Definition: queue_defs.h:59
unsigned int nba
Definition: queue_defs.h:58
unsigned int trp
Definition: queue_defs.h:62
unsigned int dqm
Definition: queue_defs.h:61
unsigned int ms
Definition: queue_defs.h:60