I have a couple of Python functions that I use to make game development with Pygame easier. I have them in a file called helper.py in my Python-path, so I can import them from any game I make. I thought, as an exercise to learn about Python extensions, to convert this module to C. My first problem is that I need to use functions from Pygame, and I'm not sure if this is possible. Pygame installs some header files, but they don't seem to have C versions of the Python functions. Maybe I'm missing something.
How can I solve this? As a workaround, the function currently accepts a function parameter and calls that, but it's not the ideal solution.
Using Windows XP, Python 2.6 and Pygame 1.9.1, by the way.