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,

For example, in the XS file, I have:

c_object=c_create_object(); # in function MyTest::new_object

and I want to return the "c_object" to perl to be able to pass it to C again to use like this:

printf("--- %s\n",c_object->str); #in function MyTest::display
use_object(c_object,3);

What type should I map to c_object the typemap file or it is not possible !?

--
$_=`perldoc -U -q "What is a"`;m/"(.*?)"/;print$1



_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to