binlog_api - mariadb-corporation/mariadb-connector-c GitHub Wiki
The main mechanism used in replication is the binary log. If binary logging is enabled, all updates to the database (data manipulation and data definition) are written into the binary log as binlog events. Clients may read the binary log from master using the replication API in order to access the data.