The only file that you need is src/tap.h, and then add the listener to your tests. Have a look at sample code under samples/ for a simple example.