1 | /* |
2 | * This Source Code Form is subject to the terms of the Mozilla Public |
3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
5 | * |
6 | * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V. |
7 | */ |
8 | |
9 | #ifndef _MAL_LINKER_H |
10 | #define _MAL_LINKER_H |
11 | |
12 | #define MAL_EXT ".mal" |
13 | #define SQL_EXT ".sql" |
14 | |
15 | #ifdef HAVE_DLFCN_H |
16 | #include <dlfcn.h> |
17 | #else |
18 | #define RTLD_LAZY 1 |
19 | #define RTLD_NOW 2 |
20 | #define RTLD_GLOBAL 4 |
21 | #endif |
22 | |
23 | mal_export MALfcn getAddress(str fcnname); |
24 | mal_export char *MSP_locate_sqlscript(const char *mod_name, bit recurse); |
25 | mal_export str loadLibrary(str modulename, int flag); |
26 | mal_export char *locate_file(const char *basename, const char *ext, bit recurse); |
27 | mal_export int malLibraryEnabled(str name); |
28 | mal_export char* malLibraryHowToEnable(str name); |
29 | #endif /* _MAL_LINKER_H */ |
30 | |