67feeb6aca
apparently caused last time. Sorry about that. This one will just be a big changelog. This commit was SVN r25016.
90 строки
2.0 KiB
C
90 строки
2.0 KiB
C
/*
|
|
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
|
*
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#include "orte_config.h"
|
|
#include "opal/util/output.h"
|
|
|
|
#include "orte/mca/errmgr/errmgr.h"
|
|
#include "orte/mca/errmgr/base/base.h"
|
|
#include "errmgr_app.h"
|
|
|
|
/*
|
|
* Public string for version number
|
|
*/
|
|
const char *orte_errmgr_app_component_version_string =
|
|
"ORTE ERRMGR app MCA component version " ORTE_VERSION;
|
|
|
|
/*
|
|
* Local functionality
|
|
*/
|
|
static int errmgr_app_open(void);
|
|
static int errmgr_app_close(void);
|
|
static int errmgr_app_component_query(mca_base_module_t **module, int *priority);
|
|
|
|
/*
|
|
* Instantiate the public struct with all of our public information
|
|
* and pointer to our public functions in it
|
|
*/
|
|
orte_errmgr_base_component_t mca_errmgr_app_component =
|
|
{
|
|
/* Handle the general mca_component_t struct containing
|
|
* meta information about the component itapp
|
|
*/
|
|
{
|
|
ORTE_ERRMGR_BASE_VERSION_3_0_0,
|
|
/* Component name and version */
|
|
"app",
|
|
ORTE_MAJOR_VERSION,
|
|
ORTE_MINOR_VERSION,
|
|
ORTE_RELEASE_VERSION,
|
|
|
|
/* Component open and close functions */
|
|
errmgr_app_open,
|
|
errmgr_app_close,
|
|
errmgr_app_component_query
|
|
},
|
|
{
|
|
/* The component is checkpoint ready */
|
|
MCA_BASE_METADATA_PARAM_CHECKPOINT
|
|
},
|
|
/* Verbosity level */
|
|
0,
|
|
/* opal_output handler */
|
|
-1,
|
|
/* Default priority */
|
|
0
|
|
};
|
|
|
|
static int errmgr_app_open(void)
|
|
{
|
|
return ORTE_SUCCESS;
|
|
}
|
|
|
|
static int errmgr_app_close(void)
|
|
{
|
|
return ORTE_SUCCESS;
|
|
}
|
|
|
|
static int errmgr_app_component_query(mca_base_module_t **module, int *priority)
|
|
{
|
|
if (ORTE_PROC_IS_APP) {
|
|
/* keep our priority low so that other modules are higher
|
|
* and will run before us
|
|
*/
|
|
*priority = 0;
|
|
*module = (mca_base_module_t *)&orte_errmgr_app_module;
|
|
return ORTE_SUCCESS;
|
|
}
|
|
|
|
*priority = -1;
|
|
*module = NULL;
|
|
return ORTE_ERROR;
|
|
}
|