Create a plugin using "C" for font export

I would like to write a plugin for Glyphs which allows exporting a font. The routines to write the binary external format already exist, and they are all written in “C”. Is there some sample code available which can help me to find out how to access C from within a plugin ?
(I a new to Glyphs, I am new to python, but I do have some experience in C.) Thanks !

There is a Xcode template for plugins written in ObjectivC. It can contain plain c code.