2007-04-21 04:15:05 +04:00
|
|
|
/*
|
2007-04-21 04:16:31 +04:00
|
|
|
* Copyright (c) 2006-2007 Los Alamos National Security, LLC. All rights
|
2007-04-21 04:15:05 +04:00
|
|
|
* reserved.
|
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OPAL_MCA_INSTALLDIRS_INSTALLDIRS_H
|
|
|
|
#define OPAL_MCA_INSTALLDIRS_INSTALLDIRS_H
|
|
|
|
|
|
|
|
#include "opal_config.h"
|
|
|
|
|
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "opal/mca/base/base.h"
|
|
|
|
|
2009-08-20 15:42:18 +04:00
|
|
|
BEGIN_C_DECLS
|
2007-04-21 10:30:30 +04:00
|
|
|
|
2007-04-21 04:15:05 +04:00
|
|
|
/*
|
|
|
|
* Most of this file is just for ompi_info. The only public interface
|
|
|
|
* once opal_init has been called is the opal_install_dirs structure
|
|
|
|
* and the opal_install_dirs_expand() call */
|
|
|
|
struct opal_install_dirs_t {
|
|
|
|
char* prefix;
|
|
|
|
char* exec_prefix;
|
|
|
|
char* bindir;
|
|
|
|
char* sbindir;
|
|
|
|
char* libexecdir;
|
2007-04-21 04:16:31 +04:00
|
|
|
char* datarootdir;
|
2007-04-21 04:15:05 +04:00
|
|
|
char* datadir;
|
|
|
|
char* sysconfdir;
|
|
|
|
char* sharedstatedir;
|
|
|
|
char* localstatedir;
|
|
|
|
char* libdir;
|
|
|
|
char* includedir;
|
|
|
|
char* infodir;
|
|
|
|
char* mandir;
|
|
|
|
char* pkgdatadir;
|
|
|
|
char* pkglibdir;
|
|
|
|
char* pkgincludedir;
|
|
|
|
};
|
|
|
|
typedef struct opal_install_dirs_t opal_install_dirs_t;
|
|
|
|
|
|
|
|
/* Install directories. Only available after opal_init() */
|
2007-04-21 10:30:30 +04:00
|
|
|
OPAL_DECLSPEC extern opal_install_dirs_t opal_install_dirs;
|
2007-04-21 04:15:05 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Expand out path variables (such as ${prefix}) in the input string
|
|
|
|
* using the current opal_install_dirs structure */
|
2007-04-21 10:30:30 +04:00
|
|
|
OPAL_DECLSPEC char * opal_install_dirs_expand(const char* input);
|
2007-04-21 04:15:05 +04:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
2008-07-29 02:40:57 +04:00
|
|
|
* Structure for installdirs components.
|
2007-04-21 04:15:05 +04:00
|
|
|
*/
|
2008-07-29 02:40:57 +04:00
|
|
|
struct opal_installdirs_base_component_2_0_0_t {
|
2007-04-21 04:15:05 +04:00
|
|
|
/** MCA base component */
|
|
|
|
mca_base_component_t component;
|
|
|
|
/** MCA base data */
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_base_component_data_t component_data;
|
2007-04-21 04:15:05 +04:00
|
|
|
/** install directories provided by the given component */
|
|
|
|
opal_install_dirs_t install_dirs_data;
|
|
|
|
};
|
|
|
|
/**
|
|
|
|
* Convenience typedef
|
|
|
|
*/
|
2008-07-29 02:40:57 +04:00
|
|
|
typedef struct opal_installdirs_base_component_2_0_0_t opal_installdirs_base_component_t;
|
2007-04-21 04:15:05 +04:00
|
|
|
|
|
|
|
/*
|
2008-07-29 02:40:57 +04:00
|
|
|
* Macro for use in components that are of type installdirs
|
2007-04-21 04:15:05 +04:00
|
|
|
*/
|
2008-07-29 02:40:57 +04:00
|
|
|
#define OPAL_INSTALLDIRS_BASE_VERSION_2_0_0 \
|
|
|
|
MCA_BASE_VERSION_2_0_0, \
|
|
|
|
"installdirs", 2, 0, 0
|
2007-04-21 04:15:05 +04:00
|
|
|
|
2009-08-20 15:42:18 +04:00
|
|
|
END_C_DECLS
|
2007-04-21 10:30:30 +04:00
|
|
|
|
2007-04-21 04:15:05 +04:00
|
|
|
#endif /* OPAL_MCA_INSTALLDIRS_INSTALLDIRS_H */
|