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