UCommon
ucommon::dso Class Reference

Convenience class for library plugins. More...

#include <fsys.h>

Public Types

typedef void * addr_t
 

Public Member Functions

 dso ()
 Create dso object for use by load functions.
 
 dso (const char *path)
 Create and map a dso object.
 
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 () const
 
bool operator! () const
 
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.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

Definition at line 662 of file fsys.h.

Member Typedef Documentation

◆ addr_t

typedef void* ucommon::dso::addr_t

Definition at line 680 of file fsys.h.

Constructor & Destructor Documentation

◆ dso()

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

Create and map a dso object.

Parameters
pathof library to map.

Member Function Documentation

◆ err()

int ucommon::dso::err ( void ) const
inline

Definition at line 718 of file fsys.h.

◆ find()

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

Find symbol in loaded module.

Parameters
moduleto search.
symbolto search for.
Returns
address of symbol or NULL if not found.

◆ map()

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

Map library object with library.

Parameters
nameof library to load.

◆ operator bool()

ucommon::dso::operator bool ( ) const
inline

Definition at line 730 of file fsys.h.

◆ operator!()

bool ucommon::dso::operator! ( ) const
inline

Definition at line 734 of file fsys.h.

◆ operator()()

addr_t ucommon::dso::operator() ( const char * symbol) const
inline

Definition at line 726 of file fsys.h.

◆ operator[]()

addr_t ucommon::dso::operator[] ( const char * symbol) const
inline

Definition at line 722 of file fsys.h.

Friends And Related Symbol Documentation

◆ fsys

friend class fsys
friend

Definition at line 665 of file fsys.h.


The documentation for this class was generated from the following file: