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 /* $XConsortium: dtksh.h /main/4 1996/03/13 13:19:34 rswiston $ */
25 /* Copyright (c) 1991, 1992 UNIX System Laboratories, Inc. */
26 /* All Rights Reserved */
28 /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
29 /* UNIX System Laboratories, Inc. */
30 /* The copyright notice above does not evidence any */
31 /* actual or intended publication of such source code. */
33 #ifndef _Dtksh_dtksh_h
34 #define _Dtksh_dtksh_h
43 /* bits for the flags field of wtab_t */
60 #define DT_PENDING_DESTROY 0x01
76 WidgetClass class; /* Class record */
77 resfixup_t *resfix; /* fixup list for resources */
78 resfixup_t *confix; /* fixup list for constraint resources */
79 discInfo * disciplines; /* Callback data environment disciplines */
80 char *res; /* Hashed list of resources */
81 char *con; /* Hashed list of constraint resources */
85 int type; /* entry type (TAB_) */
86 int size; /* entry size */
87 Widget w; /* widget pointer */
88 char *wname; /* name of widget */
89 char *widid; /* id of widget */
90 classtab_t *wclass; /* widget's class */
91 struct wtab *parent; /* pointer to widget's parent wtab_t */
92 char *envar; /* initial environment variable user gave */
93 unsigned char mask; /* keeps track of state; i.e. pending destroy */
94 XtPointer info; /* some widgets use this for any other info */
104 } dtksh_client_data_t;
111 } dtksh_event_handler_data_t;
123 #define LINESIZE 1024
125 /* Input buffer modes */
126 #define LINE_INPUT_MODE (1<<0)
127 #define RAW_INPUT_MODE (1<<1)
128 #define INPUT_SOURCE_BUSY (1<<2)
129 #define INPUT_SOURCE_PENDING_DELETE (1<<3)
132 int fd; /* the input source */
133 char *lnbuf; /* a line being built */
134 int lnbufsize; /* size of line buffer */
135 int lnend; /* current end of the line */
136 char *cmd; /* the ksh command to execute given the line */
137 unsigned char flags; /* mode flags */
138 char lastCharIsBackslash; /* Used during backslash processing */
139 char lineWasTouched; /* Empty line, but had a backslash */
143 #define CONSTCHAR (const char *)
146 #define PRINTER_INFO_PROC 0
147 #define SELECT_FILE_PROC 1
148 #define SELECT_PRINTER_PROC 2
150 #define VERIFY_PRINTER_PROC 4
153 String printerInfoProcCommand;
154 String selectFileProcCommand;
155 String selectPrinterProcCommand;
156 String setupProcCommand;
157 String verifyPrinterProcCommand;
160 #endif /* _Dtksh_dtksh_h */
161 /* DON'T ADD ANYTHING AFTER THIS #endif */