Ets_Nt_Load_Callback_Register()
Note: Requires OPNET Development Kit
Abstract
Specifies a function to be invoked any time a network model is read.
Syntax
Ets_Nt_Load_Callback_Register (callback_func_ptr, callback_name, callback_state_ptr)
| Argument | Type | Description |
|---|---|---|
callback_func_ptr |
EtsT_Nt_Load_Callback |
Callback function to register |
callback_name |
const char * |
Name associated with the callback (used to deregister). |
callback_state_ptr |
void * |
Associated state, can be NULL. |
Return Type
void
No return value.
Header
ets_api_nt_cback.h
Details
Associates the specified function with the network load operation. The function will be invoked every time a network model is read in, just before the model is displayed. This operation replaces any previously registered callback of the same callback_name. You can register multiple callbacks with this function, in which case each will be called in turn when a model is loaded.
The name provided with the callback is used only for matching in a call to Ets_Nt_Load_Callback_Deregister().
The callback function prototype is given in EtsT_Nt_Load_Callback.