SharedLibLoader

Utility that open a shared library and load symbols from it.

Members

Functions

bind
void bind(Flag!"optional" optional)

Bind a symbol, using the function pointer symbol name.

bindSymbols
void bindSymbols()

Subclasses can override this to bind all the necessary symbols. Default implementation does nothing.

load
void load(string[] libNames)

Load the shared libraries and call bindSymbols if succesful.

Properties

handle
SharedLib handle [@property getter]

Direct handle access

libName
string libName [@property getter]

Returns the name of the shared library that was open. Empty string if not loaded.

loaded
bool loaded [@property getter]

Returns whether the shared library is open.

Meta