Infrasctucture Ctl Function Reference
Ctl
| | |
|
int
|
ctlInit( int argc, char* argv[] )
|
Initializes the infCtl layer. Called by infInit().
Returns argc.
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.
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.
Terminates the ctlTbl.
Registers the ctlTbl array (CtlTbl) using ctlRegTbl(), above.