This source file includes following definitions.
- opal_dl_open
- opal_dl_lookup
- opal_dl_close
- opal_dl_foreachfile
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 #include "opal_config.h"
  19 
  20 #include "opal/include/opal/constants.h"
  21 
  22 #include "opal/mca/dl/base/base.h"
  23 
  24 
  25 int opal_dl_open(const char *fname,
  26                  bool use_ext, bool private_namespace,
  27                  opal_dl_handle_t **handle, char **err_msg)
  28 {
  29     *handle = NULL;
  30 
  31     if (NULL != opal_dl && NULL != opal_dl->open) {
  32         return opal_dl->open(fname, use_ext, private_namespace,
  33                              handle, err_msg);
  34     }
  35 
  36     return OPAL_ERR_NOT_SUPPORTED;
  37 }
  38 
  39 int opal_dl_lookup(opal_dl_handle_t *handle,
  40                    const char *symbol,
  41                    void **ptr, char **err_msg)
  42 {
  43     if (NULL != opal_dl && NULL != opal_dl->lookup) {
  44         return opal_dl->lookup(handle, symbol, ptr, err_msg);
  45     }
  46 
  47     return OPAL_ERR_NOT_SUPPORTED;
  48 }
  49 
  50 int opal_dl_close(opal_dl_handle_t *handle)
  51 {
  52     if (NULL != opal_dl && NULL != opal_dl->close) {
  53         return opal_dl->close(handle);
  54     }
  55 
  56     return OPAL_ERR_NOT_SUPPORTED;
  57 }
  58 
  59 int opal_dl_foreachfile(const char *search_path,
  60                         int (*cb_func)(const char *filename, void *context),
  61                         void *context)
  62 {
  63     if (NULL != opal_dl && NULL != opal_dl->foreachfile) {
  64         return opal_dl->foreachfile(search_path, cb_func, context);
  65     }
  66 
  67     return OPAL_ERR_NOT_SUPPORTED;
  68 }