Back: Directory class-reading system defaults Up: Base classes Forward: DLD class-C call-outs   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.66 DLD

Defined in namespace Smalltalk
Superclass: Object
Category: Language-C interface
...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.

1.66.1 DLD class: C call-outs  (class)
1.66.2 DLD class: dynamic linking  (class)


1.66.1 DLD class: C call-outs

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


1.66.2 DLD class: dynamic linking

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



Back: DLD class-C call-outs Up: DLD Forward: Duration   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on February, 22 2012 using texi2html