Re: [GNC-dev] Wrapping gncOwnerGetOwnerFromTxn() for Python

2023-04-25 Thread John Ralls
> On Apr 25, 2023, at 10:35 AM, Steve Brown wrote: > > The subject function takes a GncOwner as an argument, modifies it and > returns the result through the argument. It's not clear how to create a > Swig INOUT map for a non-primitive type. So, I wrote a wrapper to > return the result in a no

[GNC-dev] Wrapping gncOwnerGetOwnerFromTxn() for Python

2023-04-25 Thread Steve Brown
The subject function takes a GncOwner as an argument, modifies it and returns the result through the argument. It's not clear how to create a Swig INOUT map for a non-primitive type. So, I wrote a wrapper to return the result in a normal way and indicate an error with a NULL return. The wrapper all