File: dl_libltdl.h

package info (click to toggle)
openmpi 5.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 201,684 kB
  • sloc: ansic: 613,078; makefile: 42,353; sh: 11,194; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,179; python: 1,859; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (49 lines) | stat: -rw-r--r-- 1,110 bytes parent folder | download | duplicates (4)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * Copyright (c) 2015 Cisco Systems, Inc.  All rights reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 */

#ifndef OPAL_DL_LIBLTDL
#define OPAL_DL_LIBLTDL

#include "opal_config.h"

#include "opal/mca/dl/dl.h"

#include <ltdl.h>

OPAL_DECLSPEC extern opal_dl_base_module_t opal_dl_libltdl_module;

/*
 * Dynamic library handles generated by this component.
 *
 * If we're debugging, keep a copy of the name of the file we've opened.
 */
struct opal_dl_handle_t {
    lt_dlhandle ltdl_handle;
#if OPAL_ENABLE_DEBUG
    char *filename;
#endif
};

typedef struct {
    opal_dl_base_component_t base;

#if OPAL_DL_LIBLTDL_HAVE_LT_DLADVISE
    /* If the version of libltdl that we are compiling against has
       lt_dladvise, use it to support opening DSOs in a variety of
       modes. */
    lt_dladvise advise_private_noext;
    lt_dladvise advise_private_ext;
    lt_dladvise advise_public_noext;
    lt_dladvise advise_public_ext;
#endif
} opal_dl_libltdl_component_t;

OPAL_DECLSPEC extern opal_dl_libltdl_component_t mca_dl_libltdl_component;

#endif /* OPAL_DL_LIBLTDL */