On Tue, May 12, 2015 at 04:10:54PM -0400, Darryl L. Pierce wrote: > On Tue, May 12, 2015 at 11:12:40AM -0400, Rafael Schloming wrote: > > I made a bunch of line comments. > > Things appear to be working in the scaled back example except for one > thing: when retrieving the record with pn_record_get the Swig wrapper > returned is of type SWIG:TYPE_p_void rather than the expected wrapper > for pn_rbkey_t. I think that Swig is confused by the type being returned > by pn_record_get and can't distinguish what the appropriate wrapper > should be. > > When the return value is then used for fetching the key, it fails with: > > TypeError: Expected argument 0 of type pn_rbkey_t *, but got > SWIG::TYPE_p_void #<SWIG::TYPE_p_void:0x00000000...
Fixed it with a cast function of pni_void2rbkey(). My tests are now flying in Ruby, so I'm far more confident that this approach is cleaner and more efficient so far. -- Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc. Delivering value year after year. Red Hat ranks #1 in value among software vendors. http://www.redhat.com/promo/vendor/
pgpNSkhYEFc0V.pgp
Description: PGP signature
