Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

dlmisc.c File Reference

dynamic loader helpers More...


Functions

void * snd_dlopen (const char *name, int mode)
 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.


Detailed Description

dynamic loader helpers

Author:
Jaroslav Kysela <perex@suse.cz>
Date:
2001
Dynamic loader helpers


Function Documentation

int snd_dlclose void *    handle
 

Closes a dynamic library - ALSA wrapper for dlclose.

Parameters:
handle  Library handle, similar to dlclose.
Returns:
Zero if successful, otherwise an error code.
This function can emulate dynamic linking for the static build of the alsa-lib library.

void* snd_dlopen const char *    name,
int    mode
 

Opens a dynamic library - ALSA wrapper for dlopen.

Parameters:
name  name of the library, similar to dlopen.
mode  mode flags, similar to dlopen.
Returns:
Library handle if successful, otherwise NULL.
This function can emulate dynamic linking for the static build of the alsa-lib library. In that case, name is set to NULL.

void* snd_dlsym void *    handle,
const char *    name,
const char *    version
 

Resolves a symbol from a dynamic library - ALSA wrapper for dlsym.

Parameters:
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.


Generated on Fri Sep 3 11:05:46 2004 for ALSA project - the C library reference by doxygen1.2.18