Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / lib / tt / lib / tt_const.h
1 /*%%  (c) Copyright 1993, 1994 Hewlett-Packard Company                   */
2 /*%%  (c) Copyright 1993, 1994 International Business Machines Corp.     */
3 /*%%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.                    */
4 /*%%  (c) Copyright 1993, 1994 Novell, Inc.                              */
5 /*%%  $XConsortium: tt_const.h /main/3 1995/10/23 09:50:21 rswiston $                                                    */
6 /*
7  *
8  * tt_const.h
9  *
10  * Copyright (c) 1990 by Sun Microsystems, Inc.
11  *
12  * This file contains global constants and definitions used throughout
13  * tooltalk, plus #defines for compilation-time options.
14  *
15  * HACK: many of these are only used in the DM...
16  */
17
18 #ifndef  _TT_CONST_H
19 #define  _TT_CONST_H
20
21 /* Compilation options */
22
23 /*
24  * To *not* use the dbserver (i.e. to link NetISAM into every TT client) 
25  * use:  "make DEFINES=-DTT_NO_DBSERVER"
26  */
27
28 const char NULL_CHAR = '\0';
29 const int OID_KEY_LENGTH = 16;
30 const int MAX_PROP_LENGTH = 64;
31 const int PATH_LENGTH = 1024;
32 const int HOST_LENGTH = 1024;
33 const int MAX_OID_LENGTH = HOST_LENGTH + PATH_LENGTH + OID_KEY_LENGTH;
34 const int MSG_ID_LENGTH = 4;
35 const int MSG_PART_LENGTH = 4;
36 const int MAX_OTID_LENGTH = 64;
37
38 //
39 // How often to run garbage collection - Number of seconds in 24 hours.
40 //
41 const int _TT_GARBAGE_COLLECTION_FREQUENCY = 86400;
42
43 #define _TT_FILEJOIN_PROPNAME "_TT_SESSIONS"
44 #define _MP_NODE_MOD_PROP "_MODIFICATION_DATE"
45
46 #endif /* _TT_CONST_H */