[Home] [ToC] [Up] [Prev] [Next]
The browser's shared library services include an opaque type and three functions that are used to dynamically load and interrogate external code segments. These services are typically implemented in the operating system glue of the browser.
void*
(This is an
opaque type that is defined by the browser's internal
implementation.)
This type represents a handle on an external piece of code that has been dynamically loaded by the browser. Once loaded, the module can be queried for symbols and unloaded.
int BR_GetSharedSymbol(IHSharedModule
module, const char*
symbol, void* storage)
(IHSharedModule)
module
(const char*)
symbol
(void*)
storage
(int)
TRUE if the symbol was
successfully retrieved, else FALSE.
Retrieves the given symbol name from the previously loaded shared module, and stores its value in the address pointed to by storage.
IHSharedModule BR_LoadSharedModule(const
char*
dir, const char* name)
(const char*)
dir
(const char*)
name
(IHSharedModule)
A handle on
the loaded module, or NULL if it could not be found.
Looks for the given external shared module; if it exists, it is loaded into the browser and an abstract handle for it is returned. If it doesn't exist or can't be loaded, a NULL handle is returned.
void
BR_UnloadSharedModule(IHSharedModule module)
(IHSharedModule)
module
Unloads an external shared module that was previously loaded with BR_LoadSharedModule().
[Home] [ToC] [Up] [Prev] [Next]
Dianne Kyra Hackborn <hackbod@angryredplanet.com> | Last modified: Sat Oct 26 23:32:20 PDT 1996 |