Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
oncsdefs.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file oncsdefs.h
1 // oncsdefs.h
2 // $Log: oncsdefs.h,v $
3 // Revision 1.4 2005/12/30 14:17:50 desmond
4 // ejd remove unused variable nameserver
5 //
6 // Revision 1.3 2004/11/15 16:28:02 phnxoncs
7 // chp: declare initialized char * as const char * (more apropriate and the Sun C compiler stops complaining
8 //
9 // Revision 1.2 2002/07/29 15:18:58 pinkenbu
10 // Make COMMON/inc and newbasic have a consistent oncsdef.h
11 //
12 // Revision 1.9 2001/09/10 14:06:32 phoncs
13 // ejd increase file limit
14 //
15 // Revision 1.8 2000/05/31 21:50:06 phoncs
16 // Changed RESULT to RESULTS. Needed to relieve name clash with /export/software/oncs/R2.6.3/online_distribution/Dcm code. Sorry about that. Adler, May 31st, 2000
17 //
18 // Revision 1.7 2000/04/07 15:31:07 phoncs
19 // ejd increase max objects definition
20 //
21 // Revision 1.6 2000/02/01 02:55:08 phoncs
22 // mlp - check in modifications
23 //
24 // Revision 1.5 1999/11/09 15:05:37 phoncs
25 // ejd add crate partition limit
26 //
27 /* general ONCS definitions
28  *
29  * created: Oct 1, 1996
30  *
31  * author: Ed Desmond
32  * Module = %M% Date = %D% Version = %I%
33  *
34  * modifications:
35  * none
36  *
37  */
38 
39 #ifndef ONCSDEFS_H
40 #define ONCSDEFS_H
41 
42 #define MAX_OBJ_REF 2000
43 #define MAX_EVENTID 1000
44 
45 // message queue parameters
46 #define MAX_MSGS 10
47 #define MAX_MSG_LEN 1000
48 #define DEF_MSG_TIMEOUT 400000
49 
50 
51 // partition parameters
52 #define MAX_PARTITIONS_CRATE 5
53 // exit status
54 
55 
56 #define SUCCESS 0
57 #define FAILURE 1
58 
59 //
60 // CHANGE; by CW Feb 17,98
61 // typedef RESULT long
62 typedef long RESULTS;
63 typedef long HRESULT;
64 typedef int MSG_TIMEOUT;
65 
66 // offsets of device information in constructor arguements
67 #define DEVICETYPE 0
68 #define DEVICEEVENTID 1
69 #define DEVICESUBEVENTID 2
70 
71 #define MAXDCM_PER_DCB 5
72 
73 
74 #endif
75