]> git.evergreen-ils.org Git - OpenSRF.git/commit
Tweak jsonObjectDecodeClass so that it preserves classnames
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 5 Oct 2009 02:01:39 +0000 (02:01 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 5 Oct 2009 02:01:39 +0000 (02:01 +0000)
commit145d6ca1b5df895dffd4555718876bdad124e5c2
treeb80008e7f41ece7b23b202ed1b55b26cf97d2766
parentbc078a5e8fd679c63ad2dc790b2f397d2c47f050
Tweak jsonObjectDecodeClass so that it preserves classnames
that are already present.  The previous version would add
new classnames, if it found them encoded, but would drop
any old ones.

At present this change will have no effect.  Apart from a
couple of recursive calls, the only function that calls
jsonObjectDecodeClass() is jsonParseString().  In that case,
we pass a freshly parsed jsonObject that can't possibly
have any classnames yet.

However this change will enable us to use this function
elsewhere (specifically in osrf_message.c), resulting in
simpler and faster code.

M    src/libopensrf/osrf_json_tools.c

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1805 9efc2488-bf62-4759-914b-345cdb29e865
src/libopensrf/osrf_json_tools.c