Link with C++ linker
[oweals/cde.git] / cde / programs / dtimsstart / ximspath.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 /* @(#)$XConsortium: ximspath.h /main/3 1996/05/07 14:03:38 drk $ */
24
25 #ifndef _XIMSPATH_H_
26 #define _XIMSPATH_H_
27
28 #include        <sys/param.h>
29
30 #ifndef MAXPATHLEN
31 #define MAXPATHLEN              1024
32 #endif
33
34
35     /* dtimsstart */
36         /* command */
37 #define DTIMS_PROGNAME          "dtimsstart"
38 #define DTIMS_CLASS             "Dtimsstart"
39
40     /* atom for properties */
41 #define DTIMS_ATOM_MAIN         "_DTIMSSTART_MAIN"
42 #define DTIMS_ATOM_STATUS       "_DTIMSSTART_STATUS"
43 #define DTIMS_ATOM_DATA         "_DTIMSSTART_DATA"
44
45         /* environment */
46 #define ENV_DTIMS_STARTCONF     "DTIMS_STARTCONF"
47 #define ENV_NO_DTIMSSTART       "NODTIMSSTART"
48 #define ENV_XFILESEARCHPATH     "XFILESEARCHPATH"
49 #define ENV_XFILESEARCHPATH_STRING \
50         "/etc/dt/app-defaults/%L/%N:/etc/dt/app-defaults/C/%N:/usr/dt/app-defaults/%L/%N:/usr/dt/app-defaults/C/%N"
51 #define ENV_NLSPATH             "NLSPATH"
52 #define ENV_NLSPATH_STRING \
53         "/usr/dt/lib/nls/msg/%L/%N.cat:/usr/dt/lib/nls/msg/C/%N.cat"
54
55         /* configuration */
56 #define DTIMS_CONFDIR           "/usr/dt/config/ims"
57 #define DTIMS_APPDIR            "/usr/dt/app-defaults"
58 #define DTIMS_CONFFILE          "start.conf"
59
60         /* path of executable (used for remote execution) */
61 #define DTIMS_CMDPATH           "/usr/dt/bin/dtimsstart"
62
63         /* user dir */
64 #define DTIMS_IMSDIR            "ims"           /* [%b] */
65 #define DTIMS_LOGDIR            "/var/dt"       /* [%G] */
66 #define DTIMS_LOGFILE           "imslog"        /* [%g] */
67
68         /* user dir */
69 #define DTIMS_USRIMSDIR         "%U/ims"        /* [%S] $HOME/.dt/ims/ */
70 #define DTIMS_USRTMPDIR         "%U/tmp"        /* [%T] $HOME/.dt/tmp/ */
71 #define DTIMS_USRALTDIR         "/var/tmp"      /* [%A] */
72 #define DEFAULT_LOGPATH         "%S/%g"         /* $HOME/.dt/ims/imslog */
73 #define ALT_LOGPATH             "%A/%g.%u"      /* /var/tmp/imslog.$USER */
74 #define MAX_LOGSIZE             (20 * 1024)     /* 20 KB */
75
76         /* Actions */
77 #define NAME_ACT_GETREMCONF     "DtImsGetRemoteConf"
78 #define NAME_ACT_RUNREMIMS      "DtImsRunRemoteIms"
79
80
81     /* IMS */
82         /* environment */
83 #define ENV_XMODIFIERS          "XMODIFIERS"
84 #define ENV_DISPLAY             "DISPLAY"
85 #define ENV_LANG                "LANG"
86 #define ENV_MOD_IM              "@im="
87
88         /* format of XMODFIERS=@im */
89 #define IM_XMOD_XIM             "%n"
90 #define IM_XMOD_XIMP            "_XIMP_%L#%n.%s"
91 #define IM_XMOD_XSI             "_XIM_INPUTMETHOD"
92         /* protocol atom name */
93 #define IM_ATOM_XIM             "@server=%N"
94 #define IM_ATOM_XIMP            "_XIMP_%L@%n.%s"
95 #define IM_ATOM_XSI             "_XIM_INPUTMETHOD"
96
97
98     /* command path */
99 #define SH_PATH                 "/usr/bin/sh"
100 #define CAT_PATH                "/usr/bin/cat"
101 #define XRDB_PATH               "/usr/bin/X11/xrdb"
102 #define DTSESSION_RES_PATH      "/usr/dt/bin/dtsession_res"
103
104 # ifdef old_hpux
105     /* VUE dirs */
106 #define VUE_CONFDIR             "/etc/vue/config"
107 #define VUE_USERDIR             "%H/.vue"
108 # endif /* old_hpux */
109
110     /* DT dirs */
111 #define DT_CONFDIR              "/usr/dt/config"
112 #define DT_USERDIR              "%H/.dt"
113
114 #endif  /* _XIMSPATH_H_ */