On Fri, Jan 10, 2003 at 03:08:27PM +0700, Komtanoo Pinpimai wrote: > Hello, > > I've started learning XS technology, I know howto pass/return > primitive data, such as int,scalar,array.. > The problem is howto pass/return C struct,
Have you looked at the "Perl Objects And C Structures" section of the perlxs manpage? That's not how I would do it, though. I would use SV* as the type, avoid a typemap, and either store the pointer as an IV or store the struct as a string within SV using the perlguts API. Hope this helps, -John _______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

