This source file includes following definitions.
- component_open
- component_query
- component_close
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 #include <src/include/pmix_config.h>
32 #include "pmix_common.h"
33
34 #include "src/include/pmix_globals.h"
35 #include "src/mca/gds/gds.h"
36 #include "gds_ds21_base.h"
37
38 static pmix_status_t component_open(void);
39 static pmix_status_t component_close(void);
40 static pmix_status_t component_query(pmix_mca_base_module_t **module, int *priority);
41
42
43
44
45
46 pmix_gds_base_component_t mca_gds_ds21_component = {
47 .base = {
48 PMIX_GDS_BASE_VERSION_1_0_0,
49
50
51 .pmix_mca_component_name = "ds21",
52 PMIX_MCA_BASE_MAKE_VERSION(component,
53 PMIX_MAJOR_VERSION,
54 PMIX_MINOR_VERSION,
55 PMIX_RELEASE_VERSION),
56
57
58 .pmix_mca_open_component = component_open,
59 .pmix_mca_close_component = component_close,
60 .pmix_mca_query_component = component_query,
61 },
62 .data = {
63
64 PMIX_MCA_BASE_METADATA_PARAM_CHECKPOINT
65 }
66 };
67
68
69 static int component_open(void)
70 {
71 return PMIX_SUCCESS;
72 }
73
74
75 static int component_query(pmix_mca_base_module_t **module, int *priority)
76 {
77
78 if (PMIX_PROC_IS_LAUNCHER(pmix_globals.mypeer)) {
79 *priority = 0;
80 *module = NULL;
81 return PMIX_ERROR;
82 }
83
84 *priority = 30;
85 *module = (pmix_mca_base_module_t *)&pmix_ds21_module;
86 return PMIX_SUCCESS;
87 }
88
89
90 static int component_close(void)
91 {
92 return PMIX_SUCCESS;
93 }