[Gnucash-changes] QSF backend, support for partial QofBooks,
merge fix, references and KVP
Neil Williams
linux at codehelp.co.uk
Sun Feb 20 19:04:34 EST 2005
On Sunday 20 February 2005 11:35 pm, Chris Shoemaker wrote:
> On Sun, Feb 20, 2005 at 10:57:10PM +0000, Neil Williams wrote:
> And "the given kvp_frame"? What kvp_frame? The only
> argument is a KvpValue
You can't have a value outside a frame - the GHashTable at the top of the KVP
tree for this entity. You always pass a returned KvpValue to
kvp_frame_set_value or similar, so there's always an implicit frame.
> , and if its sub-type _happens_ to be KvpFrame,
> then this function returns NULL.
Does it? If the value->type is not KVP_TYPE_GLIST, it returns NULL but the
*contents* of the GList are not inspected at this point. A list containing
KvpValues of KvpValueType == KVP_TYPE_FRAME is treated no differently to a
GList of KvpValues of any other KvpValueType.
Look at the description for kvp_value_new_glist
http://code.neil.williamsleesmill.me.uk/gnome2/group__KVP.html#ga63
It's a list of values, which can include more frames.
--
Neil Williams
=============
http://www.dcglug.org.uk/
http://www.nosoftwarepatents.com/
http://sourceforge.net/projects/isbnsearch/
http://www.neil.williamsleesmill.me.uk/
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: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20050221/cfaf8961/attachment.bin
More information about the gnucash-devel
mailing list