will have to create a FunctionCall structure that contains your custom-built functions.
- Declare a pointer to a new FunctionCall structure before you create it in theC_ExtensionInit function. Also, declare any additional variables that you will need in C_ExtensionInit.
- Create a new FunctionCall structure inside C_ExtensionInit by calling the function, IFSObject_AllocateObject. A generic IFSObject will be created and a generic IFSObject pointer will be returned. Cast the returned pointer to a FunctionCall pointer.
- In the following example, C_ExtensionInit creates a new FunctionCall structure by calling the IFSObject_AllocateObject function. The pointer returned from the call to IFSObject_AllocateObject is cast to a pointer to a FunctionCall structure.
if ((theFunctionCall = (FunctionCall*)IFSObject_AllocateObject(
FUNCTIONCALL_INTERFACE_NAME, FUNCTIONCALL_CURRENT_VERSION, NOTOK, 0))
Parent topic: Setting up the Extension Initialization function