1 /*****************************************************************************
4 * RCS: $XConsortium: ActionDbP.h /main/3 1995/10/26 14:58:53 rswiston $
5 * Description: Private header file for the action database functions.
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 *****************************************************************************/
16 #ifndef _Dt_ActionDbP_h
17 #define _Dt_ActionDbP_h
19 #include <Dt/DbReader.h>
20 #include <Dt/ActionDb.h>
22 #define _DtMAX_NUM_FIELDS 30
23 #define _ActDb_MAX_NUM_FIELDS _DtMAX_NUM_FIELDS
27 * Bitmask field definitions for the action converter bit mask.
28 * These are NOT the bits for the mask in struct ACTION.
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)
40 #define _ActDb_MAP_ACTION_SET (1<<10)
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)
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)
57 #ifdef _DT_ALLOW_DT_MSGS
58 #define _ActDb_DT_REQ_NAME_SET (1<<26)
59 #define _ActDb_DT_SVC_SET (1<<27)
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 */
67 #define _ActDb_DT_REQUEST_BITS ( _ActDb_DT_REQ_NAME_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 \
82 | _ActDb_WINDOW_TYPE_SET \
83 | _ActDb_TERM_OPTS_SET )
84 #define _ActDb_MAP_BITS ( _ActDb_MAP_ACTION_SET )
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 )
91 #ifdef _DT_ALLOW_DT_MSGS
92 #define _ActDb_ARGN_BITS ( _ActDb_TT_ARGN_BITS \
93 | _ActDb_DT_ARGN_VAL_SET )
95 #define _ActDb_ARGN_BITS ( _ActDb_TT_ARGN_BITS )
96 #endif /* _DT_ALLOW_DT_MSGS */
99 /******************************************************************************
101 * Private (but external) entry points for internal use by Action Database
104 *****************************************************************************/
111 extern Boolean _DtActionConverter( DtDtsDbField *fields,
114 Boolean rejectionStatus);
120 #endif /* _Dt_ActionDbP_h */
121 /* DON'T ADD ANYTHING AFTER THIS #endif */