naspro
view naspro-core/include/NASPRO/core/dl.h @ 173:71372f617827
Totally CMakeized, a bit of doc
| author | Stefano D'Angelo <zanga.mail@gmail.com> |
|---|---|
| date | Fri Mar 26 18:54:24 2010 +0200 (2010-03-26) |
| parents | d7568c8379c1 |
| children | 4f7243a606b1 |
line source
1 /*
2 * NASPRO - NASPRO Architecture for Sound Processing
3 * Core library
4 *
5 * Copyright (C) 2007-2009 Stefano D'Angelo <zanga.mail@gmail.com>
6 *
7 * See the COPYING file for license conditions.
8 */
10 #ifndef _NACORE_DL_H
11 #define _NACORE_DL_H
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
17 /* Dynamically loaded module handle */
18 typedef struct _nacore_dl_module * nacore_dl_module_t;
20 /*
21 * Loads a dynamic module, returns NULL on failure.
22 *
23 * file is its filename (absolute path)
24 */
25 nacore_dl_module_t nacore_dl_open(const char *file);
27 /*
28 * Retrieves the address where a symbol is loaded or NULL in case of failure.
29 *
30 * handle is the dynamic module handle
31 * symbol is the symbol name
32 */
33 void * nacore_dl_sym(nacore_dl_module_t handle, const char *symbol);
35 /*
36 * Unloads a dynamic module.
37 *
38 * handle is the dynamic module handle
39 */
40 void nacore_dl_close(nacore_dl_module_t handle);
42 /*
43 * Convenience function to filter dynamic modules based on their filenames when
44 * scanning paths.
45 *
46 * file is the filename to filter
47 */
48 char nacore_dl_filename_filter(const char *file);
50 #ifdef __cplusplus
51 }
52 #endif
54 #endif /* !_NACORE_DL_H */
