All callback functions that you register must use the following function prototype:
Your function should return
1 (true) if its processing was successful or
0 (false) if a failure occurred. If
1 (true) is returned, the event will be acknowledged automatically. For information on acknowledging events, see
Using Sequence Numbers.
Important:
Any event that is passed to a callback function will be automatically deleted after the callback returns. Your callback function should not call
awDeleteEvent. If you wish to save a copy of the event, your callback must use the
awCopyEvent function.