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 #include <src/include/pmix_config.h>
15 #include "pmix_common.h"
16
17 #include "src/mca/base/pmix_mca_base_var.h"
18 #include "src/mca/psquash/psquash.h"
19 #include "psquash_native.h"
20
21 static pmix_status_t component_open(void);
22 static pmix_status_t component_close(void);
23 static pmix_status_t component_query(pmix_mca_base_module_t **module, int *priority);
24
25
26
27
28
29 pmix_psquash_base_component_t mca_psquash_native_component = {
30 .base = {
31 PMIX_PSQUASH_BASE_VERSION_1_0_0,
32
33
34 .pmix_mca_component_name = "native",
35 PMIX_MCA_BASE_MAKE_VERSION(component,
36 PMIX_MAJOR_VERSION,
37 PMIX_MINOR_VERSION,
38 PMIX_RELEASE_VERSION),
39
40
41 .pmix_mca_open_component = component_open,
42 .pmix_mca_close_component = component_close,
43 .pmix_mca_query_component = component_query,
44 },
45 .data = {
46
47 PMIX_MCA_BASE_METADATA_PARAM_CHECKPOINT
48 }
49 };
50
51
52 static int component_open(void)
53 {
54 return PMIX_SUCCESS;
55 }
56
57
58 static int component_query(pmix_mca_base_module_t **module, int *priority)
59 {
60 *priority = 5;
61 *module = (pmix_mca_base_module_t *)&pmix_psquash_native_module;
62 return PMIX_SUCCESS;
63 }
64
65
66 static int component_close(void)
67 {
68 return PMIX_SUCCESS;
69 }