libwi
libwi is basically wicontrol(8) under FreeBSD converted into a library so that it can be reused in other programs.
It can be downloaded
here.