-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pev: Add callback private data destructor callback
The private callback data is only available is only exposed in the API when a callback is called. In a scenario where the private data has been dynamically allocated on the heap and the event is deleted outside of the callback this is problematic since the user of the API has no way of deallocating this data. This patch adds a new optional callback that gets called during the deletion of an event. It is then possible to do what ever clean up is necessary in this callback. Signed-off-by: Jacques de Laval <[email protected]>
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters