A script-enabled browser is required for this page to function properly.

ORA_FFI.Find_Function

Description

Locates and returns the function handle for the specified function. You can retrieve the function handle by specifying either a function name or a library name. The function must previously have been registered with Ora_Ffi.Register_Function.

Syntax


FUNCTION Ora_Ffi.Find_Function
   (libHandle  libHandleType,
    funcname   VARCHAR2)
RETURN funcHandleType;   

FUNCTION Ora_Ffi.Find_Function
   (libname   VARCHAR2,
    funcname  VARCHAR2)
RETURN funcHandleType;

Parameters

Parameter Description
libHandle A library handle returned by Ora_Ffi.Load_Library or Ora_Ffi.Find_Library.
funcname The name of the function to be located.
llibname The name of the library the function is in.

Returns

A handle to the specified function.

Example


/* Find foreign function handle for 
   a given foreign library handle and 
   foreign function name */

BEGIN
   ...
   funchandle := ora_ffi.find_function
            (libhandle, 'my_func');
   ...
END;


/* Find foreign function handle for 
   a given foreign function and
   foreign library names */
BEGIN
   ...
   funchandle := ora_ffi.find_function
            (libhandle, 'my_func');
   ...
END;