int auparse_feed(auparse_state_t *au, const char *data, size_t data_len);
au The audit parse state
data a buffer of data to feed into the parser, it is data_len bytes
long. The data is copied in the parser, upon return the caller
may free or reuse the data buffer.
number of bytes in data
auparse_feed supplies new data for the parser to consume.
auparse_init() must have been called with a source type of
AUSOURCE_FEED and a NULL pointer.
The parser consumes as much data as it can invoking a user supplied
callback specified with auparse_add_callback with a cb_event_type of
AUPARSE_CB_EVENT_READY each time the parser recognizes a complete
event in the data stream. Data not fully parsed will persist and be
prepended to the next feed data. After all data has been feed to the
parser auparse_flush_feed should be called to signal the end of input
data and flush any pending parse data through the parsing system.
This page is part of the audit (Linux Audit) project. Information
about the project can be found at
⟨http://people.redhat.com/sgrubb/audit/⟩. If you have a bug report
for this manual page, send it to firstname.lastname@example.org. This page
was obtained from the project's upstream Git repository
⟨https://github.com/linux-audit/audit-userspace.git⟩ on 2017-03-13.
If you discover any rendering problems in this HTML version of the
page, or you believe there is a better or more up-to-date source for
the page, or you have corrections or improvements to the information
in this COLOPHON (which is not part of the original manual page),
send a mail to email@example.com
Red Hat May 2007 AUPARSE_FEED(3)