1
1
openmpi/orte/mca/state/base/state_base_open.c

86 строки
1.9 KiB
C
Исходник Обычный вид История

/*
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "orte_config.h"
#include "orte/constants.h"
#include "opal/mca/mca.h"
#include "opal/util/output.h"
#include "opal/mca/base/base.h"
#include "opal/dss/dss_types.h"
#include "orte/mca/state/base/base.h"
/*
* The following file was created by configure. It contains extern
* statements and the definition of an array of pointers to each
* module's public mca_base_module_t struct.
*/
#include "orte/mca/state/base/static-components.h"
opal_list_t orte_state_base_components_available;
/* provide "NULL" functions */
static int init(void);
static int finalize(void);
static int save(void *object, opal_data_type_t type);
static int set_recover_source(orte_process_name_t *name);
static int recover(void *object, opal_data_type_t type);
orte_state_base_module_t orte_state = {
init,
finalize,
save,
set_recover_source,
recover
};
int orte_state_base_output;
int
orte_state_base_open(void)
{
orte_state_base_output = opal_output_open(NULL);
OBJ_CONSTRUCT(&orte_state_base_components_available, opal_list_t);
/* Open up all available components */
if (ORTE_SUCCESS !=
mca_base_components_open("state", orte_state_base_output, mca_state_base_static_components,
&orte_state_base_components_available,
true)) {
return ORTE_ERROR;
}
return ORTE_SUCCESS;
}
static int init(void)
{
return ORTE_SUCCESS;
}
static int finalize(void)
{
return ORTE_SUCCESS;
}
static int save(void *object, opal_data_type_t type)
{
return ORTE_SUCCESS;
}
static int set_recover_source(orte_process_name_t *name)
{
return ORTE_SUCCESS;
}
static int recover(void *object, opal_data_type_t type)
{
return ORTE_SUCCESS;
}