C / C++ / Objective C header files for your favorite library don't usually have all the information available to work with them from a memory safe high-level language. But they have 95%+ of the bits necessary. Add back just the bits you need to get your work done.