Jan Dubois wrote:

>> SANE_Handle                  T_OPAQUEPTR

If you want the handle to be represented by a blessed scalar reference, you can
use T_PTROBJ.  Or, if the package name chosen by T_OPAQUEPTR doesn't suit you,
define your own typemap and use sv_setref_pv yourself.  See the implementation
of T_PTROBJ in $INC/ExtUtils/typemap for an example.

> It is somewhat confusing that you are using the typemap for your INPUT
> parameter but then try to encode the OUTPUT parameter yourself.  You
> should consistently do one or the other and not mix things (just for the
> sake of maintaining the code later).

I don't see a way to avoid this if you use PPCODE sections to return more than
one value.

-Torsten

Reply via email to