Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / lib / DtSvc / DtUtil1 / ActionDbP.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
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)
10  * any later version.
11  *
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
16  * details.
17  *
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
22  */
23 /*****************************************************************************
24  *
25  * File:         ActionDbP.h
26  * RCS:          $XConsortium: ActionDbP.h /main/3 1995/10/26 14:58:53 rswiston $
27  * Description:  Private header file for the action database functions.
28  * Language:     C
29  * Package:      N/A
30  *
31  *
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  *****************************************************************************/
37
38 #ifndef _Dt_ActionDbP_h
39 #define _Dt_ActionDbP_h
40
41 #include <Dt/DbReader.h>
42 #include <Dt/ActionDb.h>
43
44 #define         _DtMAX_NUM_FIELDS               30
45 #define         _ActDb_MAX_NUM_FIELDS   _DtMAX_NUM_FIELDS
46
47
48 /*
49  * Bitmask field definitions for the action converter bit mask.
50  * These are NOT the bits for the mask in struct ACTION.
51  */
52
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)
61
62 #define         _ActDb_MAP_ACTION_SET   (1<<10)
63
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)
69
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)
78
79 #ifdef  _DT_ALLOW_DT_MSGS
80 #define         _ActDb_DT_REQ_NAME_SET  (1<<26)
81 #define         _ActDb_DT_SVC_SET       (1<<27)
82
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 */
87
88
89 #define _ActDb_DT_REQUEST_BITS  ( _ActDb_DT_REQ_NAME_SET  \
90                                   | _ActDb_DT_SVC_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 \
103                                   | _ActDb_CWD_SET \
104                                   | _ActDb_WINDOW_TYPE_SET \
105                                   | _ActDb_TERM_OPTS_SET )
106 #define _ActDb_MAP_BITS         ( _ActDb_MAP_ACTION_SET )
107
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 )
112
113 #ifdef  _DT_ALLOW_DT_MSGS
114 #define _ActDb_ARGN_BITS        ( _ActDb_TT_ARGN_BITS \
115                                   | _ActDb_DT_ARGN_VAL_SET )
116 #else
117 #define _ActDb_ARGN_BITS        ( _ActDb_TT_ARGN_BITS )
118 #endif  /* _DT_ALLOW_DT_MSGS */
119
120
121 /******************************************************************************
122  *
123  * Private (but external) entry points for internal use by Action Database
124  * Library code only.
125  *
126  *****************************************************************************/
127
128 #  ifdef __cplusplus
129 extern "C" {
130 #  endif
131
132
133 extern Boolean  _DtActionConverter( DtDtsDbField *fields,
134                DtDbPathId pathId,
135                char *hostPrefix,
136                Boolean rejectionStatus);
137
138
139 #  ifdef __cplusplus
140 }
141 #  endif
142 #endif  /* _Dt_ActionDbP_h */
143 /* DON'T ADD ANYTHING AFTER THIS #endif */