MySQL 8.0 Release Notes
MySQL 8.0 Source Code Documentation
The following list summarizes the functions available for reading a replication event stream from a binary log. For greater detail, see the descriptions in Section 28.7.21, “C API Binary Log Function Descriptions”.
mysql_binlog_close()
: Closes the replication event stream.mysql_binlog_fetch()
: Reads an event from the replication event stream.mysql_binlog_open()
: Opens the replication event stream.