AUPARSE_ADD_CALLBACK(3) | Linux Audit API | AUPARSE_ADD_CALLBACK(3) |
auparse_add_callback - add a callback handler for notifications
#include <auparse.h>
void auparse_add_callback(auparse_state_t *au, auparse_callback_ptr callback,
void *user_data, user_destroy user_destroy_func);
auparse_add_callback adds a callback function to the parse state which is invoked to notify the application of parsing events. This is part of the event feed API.
The signature of the callback is:
void auparse_callback(auparse_state_t *au, auparse_cb_event_t cb_event_type,
void *user_data);
When the callback is invoked it is passed:
void destroy(void *user_data);
The destroy() function should be prepared to accept user_data possibly being NULL.
The cb_event_type argument indicates why the callback was
invoked. It's possible values are:
See auparse_feed(3) for a complete code example.
None.
John Dennis
May 2007 | Red Hat |