xref: /trunk/main/tools/inc/bootstrp/appdef.hxx (revision 8b851043)
1*8b851043SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*8b851043SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*8b851043SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*8b851043SAndrew Rist  * distributed with this work for additional information
6*8b851043SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*8b851043SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*8b851043SAndrew Rist  * "License"); you may not use this file except in compliance
9*8b851043SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*8b851043SAndrew Rist  *
11*8b851043SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*8b851043SAndrew Rist  *
13*8b851043SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*8b851043SAndrew Rist  * software distributed under the License is distributed on an
15*8b851043SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*8b851043SAndrew Rist  * KIND, either express or implied.  See the License for the
17*8b851043SAndrew Rist  * specific language governing permissions and limitations
18*8b851043SAndrew Rist  * under the License.
19*8b851043SAndrew Rist  *
20*8b851043SAndrew Rist  *************************************************************/
21*8b851043SAndrew Rist 
22*8b851043SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _MHAPPDEF_HXX
25cdf0e10cSrcweir #define _MHAPPDEF_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #ifdef UNX
29cdf0e10cSrcweir #define DEFAULT_INI_ROOT	"/so/env"
30cdf0e10cSrcweir #define DEFAULT_BS_ROOT		"/so/env/b_server"
31cdf0e10cSrcweir #define PATH_SEPARATOR		'/'
32cdf0e10cSrcweir #define S_PATH_SEPARATOR 	"/"
33cdf0e10cSrcweir #else
34cdf0e10cSrcweir #define DEFAULT_INI_ROOT 	"r:"
35cdf0e10cSrcweir #define DEFAULT_BS_ROOT 	"n:"
36cdf0e10cSrcweir #define PATH_SEPARATOR		'\\'
37cdf0e10cSrcweir #define S_PATH_SEPARATOR	"\\"
38cdf0e10cSrcweir #endif
39cdf0e10cSrcweir 
40cdf0e10cSrcweir #define _INI_DRV				DEFAULT_INI_ROOT
41cdf0e10cSrcweir #define B_SERVER_ROOT			DEFAULT_BS_ROOT
42cdf0e10cSrcweir #define _SOLARLIST				B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "solar.lst"
43cdf0e10cSrcweir #define _DEF_STAND_LIST 		B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "stand.lst"
44cdf0e10cSrcweir #define _DEF_SSOLARINI	 		B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.ini"
45cdf0e10cSrcweir #define _DEF_SSCOMMON			B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.cmn"
46cdf0e10cSrcweir #define	_INIROOT				B_SERVER_ROOT S_PATH_SEPARATOR "config"
47cdf0e10cSrcweir #define	_INIROOT_OLD			B_SERVER_ROOT S_PATH_SEPARATOR "config"
48cdf0e10cSrcweir #define _INI_UNC				"\\\\jumbo2.germany.sun.com\\R-Laufwerk"
49cdf0e10cSrcweir #define _INI_UNC_OLD	    	"\\\\jumbo2.germany.sun.com\\R-Laufwerk"
50cdf0e10cSrcweir 
51cdf0e10cSrcweir 
52cdf0e10cSrcweir // path conversion
53cdf0e10cSrcweir const char* GetDefStandList();
54cdf0e10cSrcweir const char* GetIniRoot();
55cdf0e10cSrcweir const char* GetIniRootOld();
56cdf0e10cSrcweir const char* GetSSolarIni();
57cdf0e10cSrcweir const char* GetSSCommon();
58cdf0e10cSrcweir const char* GetBServerRoot();
59cdf0e10cSrcweir 
60cdf0e10cSrcweir const char* GetEnv( const char *pVar );
61cdf0e10cSrcweir const char* GetEnv( const char *pVar, const char *pDefault );
62cdf0e10cSrcweir 
63cdf0e10cSrcweir 
64cdf0e10cSrcweir #endif
65