Classes | Defines | Typedefs | Enumerations | Functions

prlink.h File Reference

#include "prtypes.h"
Include dependency graph for prlink.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  PRStaticLinkTable
struct  PRLibSpec

Defines

#define PR_LD_LAZY   0x1
#define PR_LD_NOW   0x2
#define PR_LD_GLOBAL   0x4
#define PR_LD_LOCAL   0x8
#define PR_LD_ALT_SEARCH_PATH   0x10

Typedefs

typedef struct PRLibrary PRLibrary
typedef struct PRStaticLinkTable PRStaticLinkTable
typedef enum PRLibSpecType PRLibSpecType
typedef struct PRLibSpec PRLibSpec
typedef void(* PRFuncPtr )(void)

Enumerations

enum  PRLibSpecType {
  PR_LibSpec_Pathname, PR_LibSpec_MacNamedFragment, PR_LibSpec_MacIndexedFragment, PR_LibSpec_PathnameU,
  PR_LibSpec_Pathname, PR_LibSpec_MacNamedFragment, PR_LibSpec_MacIndexedFragment, PR_LibSpec_PathnameU
}

Functions

PRStatus PR_SetLibraryPath (const char *path)
char * PR_GetLibraryPath (void)
char * PR_GetLibraryName (const char *dir, const char *lib)
void PR_FreeLibraryName (char *mem)
PRLibraryPR_LoadLibrary (const char *name)
PRLibraryPR_LoadLibraryWithFlags (PRLibSpec libSpec, PRIntn flags)
PRStatus PR_UnloadLibrary (PRLibrary *lib)
void * PR_FindSymbol (PRLibrary *lib, const char *name)
PRFuncPtr PR_FindFunctionSymbol (PRLibrary *lib, const char *name)
void * PR_FindSymbolAndLibrary (const char *name, PRLibrary **lib)
PRFuncPtr PR_FindFunctionSymbolAndLibrary (const char *name, PRLibrary **lib)
PRLibraryPR_LoadStaticLibrary (const char *name, const PRStaticLinkTable *table)
char * PR_GetLibraryFilePathname (const char *name, PRFuncPtr addr)

Define Documentation

#define PR_LD_ALT_SEARCH_PATH   0x10
#define PR_LD_GLOBAL   0x4
#define PR_LD_LAZY   0x1
#define PR_LD_LOCAL   0x8
#define PR_LD_NOW   0x2

Typedef Documentation

typedef void(* PRFuncPtr)(void)
typedef struct PRLibrary PRLibrary
typedef struct PRLibSpec PRLibSpec

Enumeration Type Documentation

Enumerator:
PR_LibSpec_Pathname 
PR_LibSpec_MacNamedFragment 
PR_LibSpec_MacIndexedFragment 
PR_LibSpec_PathnameU 
PR_LibSpec_Pathname 
PR_LibSpec_MacNamedFragment 
PR_LibSpec_MacIndexedFragment 
PR_LibSpec_PathnameU 

Function Documentation

PRFuncPtr PR_FindFunctionSymbol ( PRLibrary lib,
const char *  name 
)
PRFuncPtr PR_FindFunctionSymbolAndLibrary ( const char *  name,
PRLibrary **  lib 
)
void* PR_FindSymbol ( PRLibrary lib,
const char *  name 
)
void* PR_FindSymbolAndLibrary ( const char *  name,
PRLibrary **  lib 
)
void PR_FreeLibraryName ( char *  mem  ) 
char* PR_GetLibraryFilePathname ( const char *  name,
PRFuncPtr  addr 
)
char* PR_GetLibraryName ( const char *  dir,
const char *  lib 
)
char* PR_GetLibraryPath ( void   ) 
PRLibrary* PR_LoadLibrary ( const char *  name  ) 
PRLibrary* PR_LoadLibraryWithFlags ( PRLibSpec  libSpec,
PRIntn  flags 
)
PRLibrary* PR_LoadStaticLibrary ( const char *  name,
const PRStaticLinkTable table 
)
PRStatus PR_SetLibraryPath ( const char *  path  ) 
PRStatus PR_UnloadLibrary ( PRLibrary lib  )