I did some study on the Perl's ecology of XS system. It seems an typemap can be shared only if its author made it using ExtUtils::Typemap as a module. I also found that Cairo's main typemap is auto-generated at pre-compilation stage of the module.
So it seems I cannot use the existing Cairo wrapper to cooperate with the wrapper of my lib. I would consider a re-design of my API to allow it working without using Cairo's types as function parameter, like this:
typedef enum { SURFACE_PDF, SURFACE_SVG, SURFACE_IMAGE, SURFACE_PS } SurfaceType; class MyPage { MyPage(SurfaceType type); };
In reply to Re: How to let my XS module interact with existing XS module?
by llancet
in thread How to let my XS module interact with existing XS module?
by llancet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |