OpenMPI  0.1.1
installdirs.h
1 /*
2  * Copyright (c) 2006-2007 Los Alamos National Security, LLC. All rights
3  * reserved.
4  * $COPYRIGHT$
5  *
6  * Additional copyrights may follow
7  *
8  * $HEADER$
9  */
10 
11 #ifndef OPAL_MCA_INSTALLDIRS_INSTALLDIRS_H
12 #define OPAL_MCA_INSTALLDIRS_INSTALLDIRS_H
13 
14 #include "opal_config.h"
15 
16 #include "opal/mca/mca.h"
17 #include "opal/mca/base/base.h"
18 
19 BEGIN_C_DECLS
20 
21 /*
22  * Most of this file is just for ompi_info. The only public interface
23  * once opal_init has been called is the opal_install_dirs structure
24  * and the opal_install_dirs_expand() call */
26  char* prefix;
27  char* exec_prefix;
28  char* bindir;
29  char* sbindir;
30  char* libexecdir;
31  char* datarootdir;
32  char* datadir;
33  char* sysconfdir;
34  char* sharedstatedir;
35  char* localstatedir;
36  char* libdir;
37  char* includedir;
38  char* infodir;
39  char* mandir;
40  char* pkgdatadir;
41  char* pkglibdir;
42  char* pkgincludedir;
43 };
45 
46 /* Install directories. Only available after opal_init() */
47 OPAL_DECLSPEC extern opal_install_dirs_t opal_install_dirs;
48 
49 /**
50  * Expand out path variables (such as ${prefix}) in the input string
51  * using the current opal_install_dirs structure */
52 OPAL_DECLSPEC char * opal_install_dirs_expand(const char* input);
53 
54 
55 /**
56  * Structure for installdirs components.
57  */
59  /** MCA base component */
61  /** MCA base data */
63  /** install directories provided by the given component */
65 };
66 /**
67  * Convenience typedef
68  */
70 
71 /*
72  * Macro for use in components that are of type installdirs
73  */
74 #define OPAL_INSTALLDIRS_BASE_VERSION_2_0_0 \
75  MCA_BASE_VERSION_2_0_0, \
76  "installdirs", 2, 0, 0
77 
78 END_C_DECLS
79 
80 #endif /* OPAL_MCA_INSTALLDIRS_INSTALLDIRS_H */
mca_base_component_t component
MCA base component.
Definition: installdirs.h:60
Common type for all MCA components.
Definition: mca.h:250
opal_install_dirs_t install_dirs_data
install directories provided by the given component
Definition: installdirs.h:64
mca_base_component_data_t component_data
MCA base data.
Definition: installdirs.h:62
Top-level interface for all MCA components.
Definition: installdirs.h:25
Meta data for MCA v2.0.0 components.
Definition: mca.h:309
Structure for installdirs components.
Definition: installdirs.h:58