ucommon::dso Class Reference

Convenience class for library plugins. More...

#include <fsys.h>

Public Types

typedef void * addr_t

Public Member Functions

 dso (const char *path)
 Create and map a dso object.
 dso ()
 Create dso object for use by load functions.
int err (void) const
addr_t find (const char *symbol) const
 Find symbol in loaded module.
void map (const char *path)
 Map library object with library.
 operator bool ()
bool operator! ()
addr_t operator() (const char *symbol) const
addr_t operator[] (const char *symbol) const
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 ( const char *  path  ) 

Create and map a dso object.

Parameters:
path of library to map.

Member Function Documentation

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

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 ( const 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 30 Jul 2013 for UCommon by  doxygen 1.6.1