Document the rest of the C API (#1959)
This commit fills out documentation for all remaining functions in the C API, and additionally enables "warn if undocumented" which will fail CI since warnings are also treated as errors.
This commit is contained in: