Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / lib / DtSvc / DtUtil1 / ActionDbP.h
1 /*****************************************************************************
2  *
3  * File:         ActionDbP.h
4  * RCS:          $XConsortium: ActionDbP.h /main/3 1995/10/26 14:58:53 rswiston $
5  * Description:  Private header file for the action database functions.
6  * Language:     C
7  * Package:      N/A
8  *
9  *
10  ** (c) Copyright 1993, 1994 Hewlett-Packard Company
11  ** (c) Copyright 1993, 1994 International Business Machines Corp.
12  ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
13  ** (c) Copyright 1993, 1994 Novell, Inc.
14  *****************************************************************************/
15
16 #ifndef _Dt_ActionDbP_h
17 #define _Dt_ActionDbP_h
18
19 #include <Dt/DbReader.h>
20 #include <Dt/ActionDb.h>
21
22 #define         _DtMAX_NUM_FIELDS               30
23 #define         _ActDb_MAX_NUM_FIELDS   _DtMAX_NUM_FIELDS
24
25
26 /*
27  * Bitmask field definitions for the action converter bit mask.
28  * These are NOT the bits for the mask in struct ACTION.
29  */
30
31 #define         _ActDb_LABEL_SET        (1<<0)
32 #define         _ActDb_TYPE_SET         (1<<1)
33 #define         _ActDb_ARG_CLASS_SET    (1<<2)
34 #define         _ActDb_ARG_TYPE_SET     (1<<3)
35 #define         _ActDb_ARG_COUNT_SET    (1<<4)
36 #define         _ActDb_ARG_MODE_SET     (1<<5)
37 #define         _ActDb_DESCRIPTION_SET  (1<<6)
38 #define         _ActDb_ICON_SET         (1<<7)
39
40 #define         _ActDb_MAP_ACTION_SET   (1<<10)
41
42 #define         _ActDb_EXEC_STRING_SET  (1<<12)
43 #define         _ActDb_EXEC_HOST_SET    (1<<13)
44 #define         _ActDb_CWD_SET          (1<<14)
45 #define         _ActDb_WINDOW_TYPE_SET  (1<<15)
46 #define         _ActDb_TERM_OPTS_SET    (1<<16)
47
48 #define         _ActDb_TT_CLASS_SET     (1<<18)
49 #define         _ActDb_TT_SCOPE_SET     (1<<19)
50 #define         _ActDb_TT_OPERATION_SET (1<<20)
51 #define         _ActDb_TT_FILE_SET      (1<<21)
52 #define         _ActDb_TT_ARGN_MODE_SET (1<<22)
53 #define         _ActDb_TT_ARGN_VTYP_SET (1<<23)
54 #define         _ActDb_TT_ARGN_RTYP_SET (1<<24)
55 #define         _ActDb_TT_ARGN_VAL_SET  (1<<25)
56
57 #ifdef  _DT_ALLOW_DT_MSGS
58 #define         _ActDb_DT_REQ_NAME_SET  (1<<26)
59 #define         _ActDb_DT_SVC_SET       (1<<27)
60
61 #define         _ActDb_DT_NTFY_NAME_SET (1<<28)
62 #define         _ActDb_DT_NGROUP_SET    (1<<29)
63 #define         _ActDb_DT_ARGN_VAL_SET  (1<<30)
64 /* no mask for ARGn strings */
65
66
67 #define _ActDb_DT_REQUEST_BITS  ( _ActDb_DT_REQ_NAME_SET  \
68                                   | _ActDb_DT_SVC_SET )
69 #define _ActDb_DT_NOTIFY_BITS   ( _ActDb_DT_NTFY_NAME_SET \
70                                   | _ActDb_DT_NGROUP_SET )
71 #endif  /* _DT_ALLOW_DT_MSGS */
72 #define _ActDb_TT_BITS          ( _ActDb_TT_CLASS_SET \
73                                   | _ActDb_TT_SCOPE_SET \
74                                   | _ActDb_TT_OPERATION_SET \
75                                   | _ActDb_TT_ARGN_MODE_SET \
76                                   | _ActDb_TT_ARGN_VTYP_SET \
77                                   | _ActDb_TT_ARGN_RTYP_SET \
78                                   | _ActDb_TT_ARGN_VAL_SET \
79                                   | _ActDb_TT_FILE_SET )
80 #define _ActDb_CMD_BITS         ( _ActDb_EXEC_STRING_SET \
81                                   | _ActDb_CWD_SET \
82                                   | _ActDb_WINDOW_TYPE_SET \
83                                   | _ActDb_TERM_OPTS_SET )
84 #define _ActDb_MAP_BITS         ( _ActDb_MAP_ACTION_SET )
85
86 #define _ActDb_TT_ARGN_BITS     ( _ActDb_TT_ARGN_MODE_SET \
87                                   | _ActDb_TT_ARGN_VTYP_SET \
88                                   | _ActDb_TT_ARGN_RTYP_SET \
89                                   | _ActDb_TT_ARGN_VAL_SET )
90
91 #ifdef  _DT_ALLOW_DT_MSGS
92 #define _ActDb_ARGN_BITS        ( _ActDb_TT_ARGN_BITS \
93                                   | _ActDb_DT_ARGN_VAL_SET )
94 #else
95 #define _ActDb_ARGN_BITS        ( _ActDb_TT_ARGN_BITS )
96 #endif  /* _DT_ALLOW_DT_MSGS */
97
98
99 /******************************************************************************
100  *
101  * Private (but external) entry points for internal use by Action Database
102  * Library code only.
103  *
104  *****************************************************************************/
105
106 #  ifdef __cplusplus
107 extern "C" {
108 #  endif
109
110
111 extern Boolean  _DtActionConverter( DtDtsDbField *fields,
112                DtDbPathId pathId,
113                char *hostPrefix,
114                Boolean rejectionStatus);
115
116
117 #  ifdef __cplusplus
118 }
119 #  endif
120 #endif  /* _Dt_ActionDbP_h */
121 /* DON'T ADD ANYTHING AFTER THIS #endif */