#include "pmix_config.h"
#include "pmix_common.h"
#include "src/mca/base/pmix_base.h"
#include "src/mca/mca.h"
#include "src/mca/pstat/base/base.h"
#include "src/mca/pstat/pstat.h"
int pmix_pstat_base_select(void)
{
int ret, exit_status = PMIX_SUCCESS;
pmix_pstat_base_component_t *best_component = NULL;
pmix_pstat_base_module_t *best_module = NULL;
if (PMIX_SUCCESS
!= pmix_mca_base_select("pstat", pmix_pstat_base_framework.framework_output,
&pmix_pstat_base_framework.framework_components,
(pmix_mca_base_module_t **) &best_module,
(pmix_mca_base_component_t **) &best_component, NULL)) {
goto cleanup;
}
pmix_pstat_base_component = best_component;
pmix_pstat = *best_module;
if (PMIX_SUCCESS != (ret = pmix_pstat.init())) {
exit_status = ret;
goto cleanup;
}
cleanup:
return exit_status;
}