1
1
openmpi/opal/mca/sec/munge/sec_munge_component.c

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

/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
2015-02-07 12:01:36 -08:00
/*
* Copyright (c) 2015 Intel, Inc. All rights reserved.
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
* reserved.
2015-02-07 12:01:36 -08:00
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "opal_config.h"
#include "opal/constants.h"
#include "opal/mca/base/base.h"
#include "opal/mca/sec/sec.h"
#include "sec_munge.h"
static int sec_munge_component_open(void);
static int sec_munge_component_query(mca_base_module_t **module, int *priority);
static int sec_munge_component_close(void);
/*
* Instantiate the public struct with all of our public information
* and pointers to our public functions in it
*/
opal_sec_base_component_t mca_sec_munge_component = {
.base_version = {
2015-02-07 12:01:36 -08:00
OPAL_SEC_BASE_VERSION_1_0_0,
/* Component name and version */
.mca_component_name = "munge",
MCA_BASE_MAKE_VERSION(component, OPAL_MAJOR_VERSION, OPAL_MINOR_VERSION, OPAL_RELEASE_VERSION),
2015-02-07 12:01:36 -08:00
/* Component open and close functions */
.mca_open_component = sec_munge_component_open,
.mca_close_component = sec_munge_component_close,
.mca_query_component = sec_munge_component_query,
2015-02-07 12:01:36 -08:00
},
.base_data = {
2015-02-07 12:01:36 -08:00
/* The component is checkpoint ready */
MCA_BASE_METADATA_PARAM_CHECKPOINT
}
};
static int sec_munge_component_open(void)
{
return OPAL_SUCCESS;
}
static int sec_munge_component_query(mca_base_module_t **module, int *priority)
{
*priority = 10;
*module = (mca_base_module_t*)&opal_sec_munge_module;
return OPAL_SUCCESS;
}
static int sec_munge_component_close(void)
{
return OPAL_SUCCESS;
}