PrgT_Graph_Ext_Destroy_Proc
Abstract
Callback: Destroys all of the elements in a graph (extended version).
Syntax
PrgT_Graph_Ext_Destroy_Proc (elem_type, elem_ptr, client_state_ptr)
| Argument | Type | Description |
|---|---|---|
elem_type |
PrgT_Graph_Element_Type |
Type of element being pointed to (one of the values in Table 4 Graph Package Symbolic Constants). |
elem_ptr |
void * |
Pointer to the element to be destroyed. |
client_state_ptr |
void * |
Pointer to user-defined information that was defined when the callback was registered. |
Return Type
PrgT_Compcode
PrgC_Compcode_Success if success, else PrgC_Compcode_Failure
Header
prg_graph.h
Details
For each element in the graph, this procedure is called whenever a graph is destroyed. It is registered by prg_graph_state_ext_handler_register().
This callback type is a more flexible version of PrgT_Graph_Destroy_Proc. Use only one of these two callback types; do not mix them.