Back: Directory-enumerating
Up: Class reference
Forward: DLD class-C functions
 
Top: GNU Smalltalk User's Guide
Contents: Table of Contents
Index: Class index
About: About this document

6.59 DLD

Defined in namespace Smalltalk
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 and Behavior.

6.59.1 DLD class: C functions  (class)
6.59.2 DLD class: Dynamic Linking  (class)


6.59.1 DLD class: C functions

defineCFunc: aName as: aFuncAddr
C call-out to defineCFunc. Do not modify!

library: libHandle getFunc: aFuncString
C call-out to dldGetFunc. Do not modify!

linkFile: aFileName
C call-out to dldLink. Do not modify!


6.59.2 DLD class: Dynamic Linking

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

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




This document was generated on May, 12 2002 using texi2html