Transformer SDK For C  6.2.11.309924
Sharing code between modules

Functions

void * tf_find_function (const char *name)
 Lookup an extension function. More...
 
int tf_register_function (const char *name, void *function)
 Register a new function against the extension system. More...
 

Detailed Description

The extension interface allows modules to register functions with the transformer core which can then be used by other modules. This way common functionality can be shared between modules, and additional features added to the Transformer without needing to alter the Transformer's codebase.

Two modules supplied with the Transformer use the extender interface to expose functionality to other modules:

The extension interface is totally flexible in how functionality is exposed between modules, however, we recommend that a function is registered that returns a structure containing function pointers/C++ object to provide protection regarding parameter errors.

Function Documentation

void* tf_find_function ( const char *  name)

Lookup an extension function.

Parameters
name- Function name to lookup
Returns
Cast to void function pointer for the function
Return values
NULL- Function not known
int tf_register_function ( const char *  name,
void *  function 
)

Register a new function against the extension system.

Parameters
name- Function name
function- Cast to void * function pointer
Returns
0 - Registered (always)

Generated on Sat Aug 26 2017 12:36:32 for Transformer SDK For C