Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Using multiple XS objects together

by salva (Abbot)
on May 09, 2013 at 08:38 UTC ( #1032743=note: print w/ replies, xml ) Need Help??


in reply to Using multiple XS objects together

I am stuck working out the details though, in particular where to store the security_credentials pointer (so it can be used later in DESTROY()).

You can change AlarmZone typemap to wrap it with an AV (a perl array) then use the first slot for the AlarmZone pointer and the second for the SecutiryCredentials wrapper.

Another option is to extend AlarmZone and SecurityCredentials classes adding a pointer to the Perl wrappers so you can navigate in both directions.

update: Maybe a simpler solution would be to use a fieldhash.


Comment on Re: Using multiple XS objects together

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1032743]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2014-12-29 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (184 votes), past polls