capi: exposed inifile API, split up into multiple c-api files