(file) Return to paths.h CVS log (file) (dir) Up to [OMI] / omi / base

 1 mike  1.1 /*
 2           **==============================================================================
 3           **
 4           ** Open Management Infrastructure (OMI)
 5           **
 6           ** Copyright (c) Microsoft Corporation
 7           ** 
 8           ** Licensed under the Apache License, Version 2.0 (the "License"); you may not 
 9           ** use this file except in compliance with the License. You may obtain a copy 
10           ** of the License at 
11           **
12           **     http://www.apache.org/licenses/LICENSE-2.0 
13           **
14           ** THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15           ** KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 
16           ** WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 
17           ** MERCHANTABLITY OR NON-INFRINGEMENT. 
18           **
19           ** See the Apache 2 License for the specific language governing permissions 
20           ** and limitations under the License.
21           **
22 mike  1.1 **==============================================================================
23           */
24           
25           #ifndef _omi_pahts_h
26           #define _omi_pahts_h
27           
28           #include <common.h>
29 krisbash 1.4 #include <pal/strings.h>
30 mike     1.1 
31              BEGIN_EXTERNC
32              
33              typedef enum _PathID
34              {
35                  ID_PREFIX,
36                  ID_LIBDIR,
37                  ID_BINDIR,
38                  ID_LOCALSTATEDIR,
39                  ID_SYSCONFDIR,
40                  ID_PROVIDERDIR,
41                  ID_CERTSDIR,
42                  ID_DATADIR,
43                  ID_RUNDIR,
44                  ID_LOGDIR,
45                  ID_SCHEMADIR,
46                  ID_SCHEMAFILE,
47                  ID_PIDFILE,
48                  ID_LOGFILE,
49                  ID_REGISTERDIR,
50                  ID_PEMFILE,
51 mike     1.1     ID_KEYFILE,
52                  ID_AGENTPROGRAM,
53                  ID_SERVERPROGRAM,
54                  ID_INCLUDEDIR,
55                  ID_CONFIGFILE,
56                  ID_SOCKETFILE,
57                  ID_TMPDIR,
58                  ID_DESTDIR,
59 mike     1.2     ID_AUTHDIR,
60                  ID_HTTPSENDTRACEFILE,
61                  ID_HTTPRECVTRACEFILE,
62 krisbash 1.4     ID_SRCDIR
63 mike     1.1 }
64              PathID;
65              
66 krisbash 1.4 const char* OMI_GetPath(PathID id);
67 mike     1.1 
68              int SetPath(PathID id, const char* path);
69              
70              void PrintPaths();
71              
72              /* Set path form nickname (e.g., "prefix", "libdir") */
73              int SetPathFromNickname(
74                  const char* nickname, 
75                  const char* path);
76              
77              MI_Boolean IsNickname(const char* nickname);
78              
79 krisbash 1.4 /* Format TMPDIR/file (leave result in 'path' and return path) */
80              char* TempPath(_Pre_writable_size_(PAL_MAX_PATH_SIZE) char path[PAL_MAX_PATH_SIZE], const char* file);
81              
82              TChar* TSTempPath(_Pre_writable_size_(PAL_MAX_PATH_SIZE) TChar path[PAL_MAX_PATH_SIZE], const char* file);
83              
84 mike     1.1 END_EXTERNC
85              
86              #endif /* _omi_pahts_h */

ViewCVS 0.9.2