Plugin architecture Low-level Architecture

From Second Life Wiki
Jump to navigation Jump to search

The three technical challenges for creating a plugin architecture are as follows:

Code loading

Dynamic loading of natively-compiled executable code can be accomplished with dlopen / dlsym in Linux and MacOSX and LoadLibrary on Win32.

dlopen code example

Calls from viewer to plugin (hooks)

Calls from plugin to viewer (exposing an API)