2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /*****************************************************************************
26 * RCS: $XConsortium: ActionDbP.h /main/3 1995/10/26 14:58:53 rswiston $
27 * Description: Private header file for the action database functions.
32 ** (c) Copyright 1993, 1994 Hewlett-Packard Company
33 ** (c) Copyright 1993, 1994 International Business Machines Corp.
34 ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
35 ** (c) Copyright 1993, 1994 Novell, Inc.
36 *****************************************************************************/
38 #ifndef _Dt_ActionDbP_h
39 #define _Dt_ActionDbP_h
41 #include <Dt/DbReader.h>
42 #include <Dt/ActionDb.h>
44 #define _DtMAX_NUM_FIELDS 30
45 #define _ActDb_MAX_NUM_FIELDS _DtMAX_NUM_FIELDS
49 * Bitmask field definitions for the action converter bit mask.
50 * These are NOT the bits for the mask in struct ACTION.
53 #define _ActDb_LABEL_SET (1<<0)
54 #define _ActDb_TYPE_SET (1<<1)
55 #define _ActDb_ARG_CLASS_SET (1<<2)
56 #define _ActDb_ARG_TYPE_SET (1<<3)
57 #define _ActDb_ARG_COUNT_SET (1<<4)
58 #define _ActDb_ARG_MODE_SET (1<<5)
59 #define _ActDb_DESCRIPTION_SET (1<<6)
60 #define _ActDb_ICON_SET (1<<7)
62 #define _ActDb_MAP_ACTION_SET (1<<10)
64 #define _ActDb_EXEC_STRING_SET (1<<12)
65 #define _ActDb_EXEC_HOST_SET (1<<13)
66 #define _ActDb_CWD_SET (1<<14)
67 #define _ActDb_WINDOW_TYPE_SET (1<<15)
68 #define _ActDb_TERM_OPTS_SET (1<<16)
70 #define _ActDb_TT_CLASS_SET (1<<18)
71 #define _ActDb_TT_SCOPE_SET (1<<19)
72 #define _ActDb_TT_OPERATION_SET (1<<20)
73 #define _ActDb_TT_FILE_SET (1<<21)
74 #define _ActDb_TT_ARGN_MODE_SET (1<<22)
75 #define _ActDb_TT_ARGN_VTYP_SET (1<<23)
76 #define _ActDb_TT_ARGN_RTYP_SET (1<<24)
77 #define _ActDb_TT_ARGN_VAL_SET (1<<25)
79 #ifdef _DT_ALLOW_DT_MSGS
80 #define _ActDb_DT_REQ_NAME_SET (1<<26)
81 #define _ActDb_DT_SVC_SET (1<<27)
83 #define _ActDb_DT_NTFY_NAME_SET (1<<28)
84 #define _ActDb_DT_NGROUP_SET (1<<29)
85 #define _ActDb_DT_ARGN_VAL_SET (1<<30)
86 /* no mask for ARGn strings */
89 #define _ActDb_DT_REQUEST_BITS ( _ActDb_DT_REQ_NAME_SET \
91 #define _ActDb_DT_NOTIFY_BITS ( _ActDb_DT_NTFY_NAME_SET \
92 | _ActDb_DT_NGROUP_SET )
93 #endif /* _DT_ALLOW_DT_MSGS */
94 #define _ActDb_TT_BITS ( _ActDb_TT_CLASS_SET \
95 | _ActDb_TT_SCOPE_SET \
96 | _ActDb_TT_OPERATION_SET \
97 | _ActDb_TT_ARGN_MODE_SET \
98 | _ActDb_TT_ARGN_VTYP_SET \
99 | _ActDb_TT_ARGN_RTYP_SET \
100 | _ActDb_TT_ARGN_VAL_SET \
101 | _ActDb_TT_FILE_SET )
102 #define _ActDb_CMD_BITS ( _ActDb_EXEC_STRING_SET \
104 | _ActDb_WINDOW_TYPE_SET \
105 | _ActDb_TERM_OPTS_SET )
106 #define _ActDb_MAP_BITS ( _ActDb_MAP_ACTION_SET )
108 #define _ActDb_TT_ARGN_BITS ( _ActDb_TT_ARGN_MODE_SET \
109 | _ActDb_TT_ARGN_VTYP_SET \
110 | _ActDb_TT_ARGN_RTYP_SET \
111 | _ActDb_TT_ARGN_VAL_SET )
113 #ifdef _DT_ALLOW_DT_MSGS
114 #define _ActDb_ARGN_BITS ( _ActDb_TT_ARGN_BITS \
115 | _ActDb_DT_ARGN_VAL_SET )
117 #define _ActDb_ARGN_BITS ( _ActDb_TT_ARGN_BITS )
118 #endif /* _DT_ALLOW_DT_MSGS */
121 /******************************************************************************
123 * Private (but external) entry points for internal use by Action Database
126 *****************************************************************************/
133 extern Boolean _DtActionConverter( DtDtsDbField *fields,
136 Boolean rejectionStatus);
142 #endif /* _Dt_ActionDbP_h */
143 /* DON'T ADD ANYTHING AFTER THIS #endif */