Nirav Patel wrote:
I think it's slightly more complicated than that, because I think I need to use the CObject api to share the PyMask_Type with the other extension. However, I'm working on moving that stuff into mask.h, and I'll submit a patch when I get it working.The mask module is kind of strange because the Python additions were all after the fact. bitmask.c and bitmask.h were/are a separate C library that is just included in Pygame. That explains the exported functions in bitmask. I'm not clear on exactly what you wanted to do, but it seems that the PyMaskObject and PyMask_Type definitions should be in pygame.h instead of mask.c. Then it would just be a matter of including pygame.h and bitmask.h in what you are writing.
--Mike