new objects from QOF was Re: engine registration in gnc_budget

Neil Williams linux at codehelp.co.uk
Mon Aug 9 09:43:02 EDT 2004


On Monday 09 August 2004 2:09, Neil Williams wrote:
> I'm currently working on how to create new objects from the import data,
> without the program having to know anything about specialised Init
> functions. 

I should have known I'd missed it:
QofInstance *inst = (QofInstance*)qof_object_new_instance(QofIdType g, QofBook 
*b);
the QofEntity for the new data can then be set to &inst->entity;

-- 

Neil Williams
=============
http://www.codehelp.co.uk/
http://www.dclug.org.uk/
http://www.isbn.org.uk/
http://sourceforge.net/projects/isbnsearch/

http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20040809/eeea136d/attachment.bin


More information about the gnucash-devel mailing list