As libwireshark is not public API, it is prone to change and break non-official tools depending on it. This project aims to provide a thin frequently-updated wrapper around the core capture/dissect functionality that other applications can then link against.
Tested working with Wireshark v2.4.0
on macOS Sierra
mkdir build && cd build
cmake ..
make
./simple_print -f ../test/1.pcap
Code is released under same terms as tshark, which it's based on (GNU GPL2.0+). It contains code by Sun Wang, originally under the MIT license.