ucommon::dso Class Reference

Convenience class for library plugins. More...

#include <fsys.h>


Public Types

typedef void * addr_t

Public Member Functions

 dso (char *path)
 Create and map a dso object.
 dso ()
 Create dso object for use by load functions.
int err (void)
addr_t find (char *symbol)
 Find symbol in loaded module.
void map (char *path)
 Map library object with library.
 operator bool ()
bool operator! ()
addr_t operator() (char *symbol)
addr_t operator[] (char *symbol)
void release (void)
 Release loaded library.
 ~dso ()
 Destroy dso and release library.

Friends

class fsys


Detailed Description

Convenience class for library plugins.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 642 of file fsys.h.


Constructor & Destructor Documentation

ucommon::dso::dso ( char *  path  ) 

Create and map a dso object.

Parameters:
path of library to map.


Member Function Documentation

addr_t ucommon::dso::find ( char *  symbol  ) 

Find symbol in loaded module.

Parameters:
module to search.
symbol to search for.
Returns:
address of symbol or NULL if not found.

void ucommon::dso::map ( char *  path  ) 

Map library object with library.

Parameters:
name of library to load.


The documentation for this class was generated from the following file:
Generated on 14 Aug 2013 for UCommon by  doxygen 1.4.7