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: dm_enums.h /main/3 1995/10/23 10:11:45 rswiston $ */
7 * Tool Talk Database Manager (DM) - dm_enums.h
9 * Copyright (c) 1990 by Sun Microsystems, Inc.
11 * This file contains all the enumerations type used by the DM.
14 #ifndef _TT_DM_ENUMS_H
15 #define _TT_DM_ENUMS_H
18 #include "tt_options.h"
19 #if defined(OPT_BUG_SUNOS_4) && defined(__GNUG__)
22 #include "api/c/tt_c.h"
24 const int VER_NO_LENGTH = 4;
25 const int INITIAL_VERSION_NO = 0;
26 const int THIS_VERSION_NO = 1;
27 const int ETHER_ADDR_LEN = 6;
28 const int DEFAULT_KEY_VERSION = 0;
30 #define NSE_ENV "NSE_ENV"
31 #define TT_DB_DIR "TT_DB_DIR"
36 DM_ERROR = TT_STATUS_LAST+1,
49 DM_INVALID_VERSION_NUMBER,
51 DM_UPDATE_MFS_INFO_FAILED,
52 DM_CLEAR_LOCKS_FAILED,
61 /* Database table identifiers */
67 DM_TABLE_OID_CONTAINER,
76 /* Database table key identifiers */
80 DM_KEY_UNDEFINED, /* for records read iterator */
92 /* Name spaces for oids' location */
98 DM_NS_STANDALONE, /* standalone mode, dbs path in TT_DB_DIR env var */
103 /* states of a property's value */
105 enum _Tt_propvalue_state
112 #define DM_LINKUR 0x1
113 #define DM_LINKUW 0x2
114 #define DM_LINKGR 0x4
115 #define DM_LINKGW 0x8
116 #define DM_LINKOR 0x10
117 #define DM_LINKOW 0x20
119 const char * _tt_enumname(_Tt_dm_status x);
120 const char * _tt_enumname(_Tt_dbtable_id x);
121 const char * _tt_enumname(_Tt_key_id x);
122 const char * _tt_enumname(_Tt_name_space x);
123 const char * _tt_enumname(_Tt_propvalue_state x);
125 #endif /* _TT_DM_ENUMS_H */