PtDestroyCallbackList()

Free the specified callbacks

Synopsis:

int PtDestroyCallbackList( 
        PtCallbackList_t **cbp );

Arguments:

cbp
A pointer to the callback list to be freed.

Description:

This function frees the entire callback list pointed to by cbp. The cbp argument is set to NULL when PtDestroyCallbackList() is successful.


Note: The widget library automatically frees all allocated resources including callback lists when a widget is destroyed.

Returns:

0
Successful completion.
-1
An error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtDestroyHotkeyCallbacks(), PtDestroyRawCallbacks()