The goal of the lensfun library is to provide a open source database of photographic lenses and their characteristics.
The lensfun library not only provides a way to read the database and search for specific things in it, but also provides a set of algorithms for correcting images based on detailed knowledge of lens properties. Right now lensfun is designed to correct distortion, transversal (also known as lateral) chromatic aberrations, and vignetting.
The interface is defined both using C++ style and plain C. The C interface is a wrapper around the C++ classes.