All pastes #384149 Raw Edit

Someone

public text v1 · immutable
·published 2007-03-06 21:16 UTC
rendered paste body
/* Adds support for library plugins.
 * Sets a doubly linked list of function pointers and names in CompDisplay.
 * Plugins that want to make their functions available to other plugins do it with addLibraryFunction, 
 * and remove them with removeLibraryFunction.
 * Other plugins that want to access those function can find function pointers using getLibraryFunction.
 *
 * The libraryFunctionUpdated vTable entry is a function that is executed every time a library function
 * is added or removed. This way plugins can keep track of the functions they need, and store their own
 * function pointer (to avoid unneeded getLibraryFunction calls).
 */