Infrasctucture Ctl Function Reference
Ctl
ctlInit ctlIdReg ctlReg ctlRegTbl ctlErr CTL_BGN
CTL_CB CTL_END CTL_REG;

int ctlInit( int argc, char* argv[] )
Initializes the infCtl layer. Called by infInit(). Returns argc.


int ctlIdReg( char* id )
Register a module's cvs ID with Ctl Id presentation system.


int ctlReg( char* lbl, pfi_t func )
Register a infCtl menu item.


int ctlRegTbl( ctlTbl_t* , int tblCnt )
Registers a table of infCtl menu items. This is embedded in the CTL_BGN macro.


int ctlErr( char* mp, char* msg )
When called from within a process's ctl function, it execute a trcErr and returns a infCtl error message.


int CTL_BGN( )
This macro initiates a CtlTbl array and you must call CTL_REG before infCtl will see it.


int CTL_CB( "MenuName" , pfi_t XXX )
Inserts an infCtl menu item into the CtlTbl. the label "MenuName" will be linked to the function pointer "XXX". The first upper case letter in the label will be the trigger character from the keyboard.
 pfi_t  doCtl( char *msg, char *answer )  // PROTOTYPE OF CALL-BACK
Please see ctl.h for call-back functionality.


int CTL_END( )
Terminates the ctlTbl.


int CTL_REG;( )
Registers the ctlTbl array (CtlTbl) using ctlRegTbl(), above.