Simple ctypes wrapper for C library.