1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef OPAL_DL_BASE_H
14 #define OPAL_DL_BASE_H
15
16 #include "opal_config.h"
17 #include "opal/mca/dl/dl.h"
18 #include "opal/util/opal_environ.h"
19 #include "opal/runtime/opal_cr.h"
20
21 #include "opal/mca/base/base.h"
22
23
24 BEGIN_C_DECLS
25
26
27
28
29 OPAL_DECLSPEC extern mca_base_framework_t opal_dl_base_framework;
30 OPAL_DECLSPEC extern opal_dl_base_component_t
31 *opal_dl_base_selected_component;
32 OPAL_DECLSPEC extern opal_dl_base_module_t *opal_dl;
33
34
35
36
37
38
39
40
41
42
43 OPAL_DECLSPEC int opal_dl_base_open(mca_base_open_flag_t flags);
44
45
46
47
48
49
50
51
52
53 OPAL_DECLSPEC int opal_dl_base_select(void);
54
55
56
57
58
59
60
61
62
63 OPAL_DECLSPEC int opal_dl_base_close(void);
64
65
66
67
68
69
70
71 OPAL_DECLSPEC int opal_dl_open(const char *fname,
72 bool use_ext, bool private_namespace,
73 opal_dl_handle_t **handle, char **err_msg);
74
75
76
77
78
79
80
81 OPAL_DECLSPEC int opal_dl_lookup(opal_dl_handle_t *handle,
82 const char *symbol,
83 void **ptr, char **err_msg);
84
85
86
87
88
89
90
91 OPAL_DECLSPEC int opal_dl_close(opal_dl_handle_t *handle);
92
93
94
95
96
97
98
99 OPAL_DECLSPEC int opal_dl_foreachfile(const char *search_path,
100 int (*cb_func)(const char *filename,
101 void *context),
102 void *context);
103
104 END_C_DECLS
105
106 #endif