MySQL 9.4 C API Developer Guide / ... / C API Binary Log Interface / C API Binary Log Function Descriptions / mysql_binlog_fetch()
intmysql_binlog_fetch(MYSQL *mysql, MYSQL_RPL *rpl)Fetch one event from the replication event stream.
Arguments:
mysql: The connection handler returned frommysql_init().rpl: The replication stream structure. After a successful call, thesizemember indicates the event size, which is 0 for an EOF event. For a non-EOF event,sizeis greater than 0 and thebuffermember points to the event contents.