Rev 30899 | Rev 41896 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{getDLLRegisteredRoutines}\alias{getDLLRegisteredRoutines}\alias{getDLLRegisteredRoutines.character}\alias{getDLLRegisteredRoutines.DLLInfo}\alias{print.NativeRoutineList}\alias{print.DLLRegisteredRoutines}\title{Reflectance Information for C/Fortran routines in a DLL}\description{This function allows us to query the set of routinesin a DLL that are registered with R to enhancedynamic lookup, error handling when calling native routines,and potentially security in the future.This function provides a description of each of theregistered routines in the DLL for the different interfaces,i.e. \code{\link{.C}}, \code{\link{.Call}}, \code{\link{.Fortran}}and \code{\link{.External}}.}\usage{getDLLRegisteredRoutines(dll)}\arguments{\item{dll}{a character string or \code{DLLInfo} object (as returned by\code{\link{getLoadedDLLs}}).}}\details{This takes the registration information after it has been registeredand processed by the R internals. In other words, it uses the extendedinformation}\value{A list with four elements corresponding to the routinesregistered for the .C, .Call, .Fortran and .External interfaces.Each element is a list with as many elements as there wereroutines registered for that interface.Each element identifies a routine and is an objectof class \code{NativeSymbolInfo}.An object of this class has the following fields:\item{name}{the registered name of the routine (not necessarily thename in the C code).}\item{address}{the memory address of the routine as resolved in theloaded DLL. This may be \code{NULL} if the symbol has not yet beenresolved.}\item{dll}{an object of class \code{DLLInfo} describing the DLL.This is same for all elements returned.}\item{numParameters}{the number of arguments the native routine is tobe called with. In the future, we will provide information aboutthe types of the parameters also.}}\references{"Writing R Extensions Manual" for symbol registration.R News, Volume 1/3, September 2001. "In search of C/C++ \& Fortran Symbols"}\author{Duncan Temple Lang <duncan@wald.ucdavis.edu>}\seealso{\code{\link{getLoadedDLLs}}}\examples{dlls <- getLoadedDLLs()getDLLRegisteredRoutines(dlls[["base"]])getDLLRegisteredRoutines("stats")}\keyword{interface}