Category: Language-C interface
Superclass: Object
...and Gandalf said: ``Many folk like to know beforehand what is to be set on the table; but those who have laboured to prepare the feast like to keep their secret; for wonder makes the words of praise louder.'' I am just an ancillary class used to reference some C functions. Most of my actual functionality is used by redefinitions of methods in CFunctionDescriptor.

Method category index

C call-outs (class)
dynamic linking (class)

C call-outs (class)

defineCFunc: aName as: aFuncAddr
Register aFuncAddr as the target for cCalls to aName.

top


dynamic linking (class)

addLibrary: library
Add library to the search path of libraries to be used by DLD.

addLibraryHandle: libraryHandle

This is called internally by gst_dlopen. The library will be open and put in the search path.

addModule: library

Add library to the list of modules to be loaded when the image is started. The gst_initModule function in the library is called, but the library will not be put in the search path used whenever a C function is requested but not registered.

defineExternFunc: aFuncName

This method calls #primDefineExternFunc: to try to link to a function with the given name, and answers whether the linkage was successful. You can redefine this method to restrict the ability to do dynamic linking.

initialize

Private - Initialize the receiver's class variables

libraryList

Answer a copy of the search path of libraries to be used by DLD

moduleList

Answer a copy of the modules reloaded when the image is started

primDefineExternFunc: aFuncName

This method tries to link to a function with the given name, and answers whether the linkage was successful. It should not be overridden.

update: aspect

Called on startup - Make DLD re-link and reset the addresses of all the externally defined functions

top