#include "src/include/pmix_config.h"
#include "pmix_common.h"
#include "src/mca/psensor/base/base.h"
#include "src/mca/psensor/heartbeat/psensor_heartbeat.h"
#include "src/mca/ptl/ptl.h"
static int heartbeat_open(void);
static int heartbeat_close(void);
static int heartbeat_query(pmix_mca_base_module_t **module, int *priority);
pmix_psensor_heartbeat_component_t pmix_mca_psensor_heartbeat_component = {
.super = {
PMIX_PSENSOR_BASE_VERSION_1_0_0,
.pmix_mca_component_name = "heartbeat",
PMIX_MCA_BASE_MAKE_VERSION(component, PMIX_MAJOR_VERSION, PMIX_MINOR_VERSION,
PMIX_RELEASE_VERSION),
heartbeat_open,
heartbeat_close,
heartbeat_query
}
};
static int heartbeat_open(void)
{
PMIX_CONSTRUCT(&pmix_mca_psensor_heartbeat_component.trackers, pmix_list_t);
return PMIX_SUCCESS;
}
static int heartbeat_query(pmix_mca_base_module_t **module, int *priority)
{
*priority = 5; *module = (pmix_mca_base_module_t *) &pmix_psensor_heartbeat_module;
return PMIX_SUCCESS;
}
static int heartbeat_close(void)
{
PMIX_LIST_DESTRUCT(&pmix_mca_psensor_heartbeat_component.trackers);
return PMIX_SUCCESS;
}