partitionconfig: Document and add C wrapper