1 /*
2 * Copyright (c) 2004-2007 The Trustees of Indiana University.
3 * All rights reserved.
4 * Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
5 * All rights reserved.
6 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
7 * University of Stuttgart. All rights reserved.
8 * Copyright (c) 2004-2005 The Regents of the University of California.
9 * All rights reserved.
10 * Copyright (c) 2015 Research Organization for Information Science
11 * and Technology (RIST). All rights reserved.
12 * $COPYRIGHT$
13 *
14 * Additional copyrights may follow
15 *
16 * $HEADER$
17 */
18
19 #include "ompi_config.h"
20
21 #include "ompi/mca/mca.h"
22 #include "opal/util/output.h"
23 #include "opal/mca/base/base.h"
24
25 #include "ompi/mca/crcp/crcp.h"
26 #include "ompi/mca/crcp/base/base.h"
27
28 #include "ompi/mca/crcp/base/static-components.h"
29
30 /*
31 * Globals
32 */
33 OMPI_DECLSPEC ompi_crcp_base_module_t ompi_crcp = {
34 NULL, /* crcp_init */
35 NULL /* crcp_finalize */
36 };
37
38 ompi_crcp_base_component_t ompi_crcp_base_selected_component = {{0}};
39
40 static int ompi_crcp_base_close(void)
41 {
42 /* Close the selected component */
43 if( NULL != ompi_crcp.crcp_finalize ) {
44 ompi_crcp.crcp_finalize();
45 }
46
47 /* Close all available modules that are open */
48 return mca_base_framework_components_close(&ompi_crcp_base_framework, NULL);
49 }
50
51 MCA_BASE_FRAMEWORK_DECLARE(ompi, crcp, NULL, NULL, NULL, ompi_crcp_base_close,
52 mca_crcp_base_static_components, 0);