Ets_Nt_Object_Install_Callback_Register()
Note: Requires OPNET Development Kit
Abstract
Registers a function to be called each time a user adds an object to the network.
Syntax
Ets_Nt_Object_Install_Callback_Register (callback_func, state_ptr)
| Argument | Type | Description |
|---|---|---|
callback_func |
EtsT_Nt_Object_Install_Callback |
Function to be called when the user adds objects to the network (see Details). |
state_ptr |
void * |
Arbitrary state that the user wants to pass into the callback when it is called. |
Return Type
void
No return value.
Header
ets_api_nt_cback.h
Details
This function allows you to register a callback function that is called every time the user adds objects to the network (for example, creating from the object palette or pasting from the clipboard). The objects can come from multiple locations. The callback function is useful when you need to keep track of objects in the network or pre-process objects that enter the network.
The callback function prototype is given in EtsT_Nt_Object_Install_Callback.