fileinfo: Document and add C wrapper