NAME

UserFuncs - IRIS Explorer hook function definitions

SYNOPSYS

include <cx/UserFuncs.h>

DESCRIPTION

UserFuncs.h declares structures that modules use to define "hook" functions. Hook functions are called when certain events occur: when the module is started, when inputs or outputs are connected or disconnected, and when the module is removed from a map.

Each cxHookTable structure is a cxHookType value and cxVoidHookFunc function pair. cx_HookTable is a user-supplied array of cxHookTable structures, in any order, terminated by the cx_func_last value. For example, the following cx_HookTable causes the function initMod to be called before the module executes, and the function exitMod to be called before the module exits:

The following macro can be used to call any hook function

The initialization and removal hook functions have no parameters. The connect and disconnect hook functions take two parameters: the port name and a unique identifier for the connection:

SEE ALSO

cxUserDefined(3E)
Last modified: Mon Nov 18 13:54:27 GMT 1996
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1996