|
ALSA project - the C library reference
|
dynamic loader helpers More...
Functions | |
| int | snd_dlpath (char *path, size_t path_len, const char *name) |
| Compose the dynamic path. | |
| void * | snd_dlopen (const char *name, int mode, char *errbuf, size_t errbuflen) |
Opens a dynamic library - ALSA wrapper for dlopen. | |
| int | snd_dlclose (void *handle) |
Closes a dynamic library - ALSA wrapper for dlclose. | |
| void * | snd_dlsym (void *handle, const char *name, const char *version) |
Resolves a symbol from a dynamic library - ALSA wrapper for dlsym. | |
dynamic loader helpers
Dynamic loader helpers
| int snd_dlclose | ( | void * | handle | ) |
Closes a dynamic library - ALSA wrapper for dlclose.
| handle | Library handle, similar to dlclose. |
This function can emulate dynamic linking for the static build of the alsa-lib library.
| void * snd_dlopen | ( | const char * | name, |
| int | mode, | ||
| char * | errbuf, | ||
| size_t | errbuflen ) |
Opens a dynamic library - ALSA wrapper for dlopen.
| name | name of the library, similar to dlopen. |
| mode | mode flags, similar to dlopen. |
| errbuf | a string buffer for the error message dlerror. |
| errbuflen | a length of the string buffer for the error message. |
NULL.This function can emulate dynamic linking for the static build of the alsa-lib library. In that case, name is set to NULL.
| int snd_dlpath | ( | char * | path, |
| size_t | path_len, | ||
| const char * | name ) |
Compose the dynamic path.
| path | Returned path (string) |
| path_len | Returned path max size (with trailing zero) |
| name | Plugin name (relative) |
| void * snd_dlsym | ( | void * | handle, |
| const char * | name, | ||
| const char * | version ) |
Resolves a symbol from a dynamic library - ALSA wrapper for dlsym.
| handle | Library handle, similar to dlsym. |
| name | Symbol name. |
| version | Version of the symbol. |
This function can emulate dynamic linking for the static build of the alsa-lib library.
This special version of the dlsym function checks also the version of the symbol. A versioned symbol should be defined using the SND_DLSYM_BUILD_VERSION macro.