1
1
Aurelien Bouteiller 828af95be8 Major modification of the vprotocol framework build system. With a better integration in autogen.sh, it allows for generating static-components.h the usual way.
NOTE: This build system does not work with the current autogen.sh. Modified one is under heavy testing to make sure it does not have side effects 

This commit was SVN r16110.
2007-09-12 18:46:37 +00:00

60 строки
1.8 KiB
C

/*
* Copyright (c) 2004-2007 The Trustees of the University of Tennessee.
* All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#ifndef __INCLUDE_VPROTOCOL_BASE_H_
#define __INCLUDE_VPROTOCOL_BASE_H_
#include "ompi_config.h"
#include "ompi/constants.h"
#include "opal/mca/mca.h"
#include "../vprotocol.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OMPI_DECLSPEC int mca_vprotocol_base_open(void);
OMPI_DECLSPEC int mca_vprotocol_base_select(bool enable_progress_threads,
bool enable_mpi_threads);
OMPI_DECLSPEC int mca_vprotocol_base_parasite(void);
OMPI_DECLSPEC int mca_vprotocol_base_close(void);
OMPI_DECLSPEC extern opal_list_t mca_vprotocol_base_components_available;
OMPI_DECLSPEC extern mca_vprotocol_base_component_t mca_vprotocol_component;
OMPI_DECLSPEC extern mca_vprotocol_base_module_t mca_vprotocol;
/* Macro for use in components that are of type vprotocol v1.0.0
*/
#define MCA_VPROTOCOL_BASE_VERSION_1_0_0 \
/* vprotocol v1.0 is chained to MCA v1.0 */ \
MCA_BASE_VERSION_1_0_0, \
/* vprotocol v1.0 */ \
"vprotocol", 1, 0, 0
/* Macro to mark an invalid component version (0.0.0). Any component showing
* that version number will be ignored.
*/
#define MCA_VPROTOCOL_BASE_VERSION_0_0_0 \
/* vprotocol v0.0 is chained to MCA v1.0 */ \
MCA_BASE_VERSION_1_0_0, \
/* vprotocol v0.0 */ \
"vprotocol", 0, 0, 0
#define mca_vprotocol_base_selected() ( \
0 != mca_vprotocol_component.pmlm_version.mca_type_major_version \
)
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* __INCLUDE_VPROTOCOL_BASE_H_ */