This source file includes following definitions.
- component_open
- component_query
- component_close
- assign_module
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 #include <src/include/pmix_config.h>
30 #include <pmix_common.h>
31 #include "src/include/types.h"
32 #include "src/include/pmix_globals.h"
33
34 #include "src/util/error.h"
35 #include "src/server/pmix_server_ops.h"
36 #include "src/mca/bfrops/base/base.h"
37 #include "bfrop_pmix4.h"
38
39 extern pmix_bfrops_module_t pmix_bfrops_pmix4_module;
40
41 static pmix_status_t component_open(void);
42 static pmix_status_t component_query(pmix_mca_base_module_t **module, int *priority);
43 static pmix_status_t component_close(void);
44 static pmix_bfrops_module_t* assign_module(void);
45
46
47
48
49
50 pmix_bfrops_base_component_t mca_bfrops_v4_component = {
51 .base = {
52 PMIX_BFROPS_BASE_VERSION_1_0_0,
53
54
55 .pmix_mca_component_name = "v4",
56 PMIX_MCA_BASE_MAKE_VERSION(component, PMIX_MAJOR_VERSION, PMIX_MINOR_VERSION,
57 PMIX_RELEASE_VERSION),
58
59
60 .pmix_mca_open_component = component_open,
61 .pmix_mca_close_component = component_close,
62 .pmix_mca_query_component = component_query,
63 },
64 .priority = 50,
65 .assign_module = assign_module
66 };
67
68
69 pmix_status_t component_open(void)
70 {
71
72 PMIX_CONSTRUCT(&mca_bfrops_v4_component.types, pmix_pointer_array_t);
73 pmix_pointer_array_init(&mca_bfrops_v4_component.types, 42, INT_MAX, 16);
74
75 return PMIX_SUCCESS;
76 }
77
78
79 pmix_status_t component_query(pmix_mca_base_module_t **module, int *priority)
80 {
81
82 *priority = mca_bfrops_v4_component.priority;
83 *module = (pmix_mca_base_module_t *)&pmix_bfrops_pmix4_module;
84 return PMIX_SUCCESS;
85 }
86
87
88 pmix_status_t component_close(void)
89 {
90 PMIX_DESTRUCT(&mca_bfrops_v4_component.types);
91 return PMIX_SUCCESS;
92 }
93
94 static pmix_bfrops_module_t* assign_module(void)
95 {
96 pmix_output_verbose(10, pmix_bfrops_base_framework.framework_output,
97 "bfrops:pmix4x assigning module");
98 return &pmix_bfrops_pmix4_module;
99 }