Re: [libvirt] [PATCH] json: add stream parser

2013-03-14 Thread Dmitry Guryanov
On 130314 10:53:59, Daniel P. Berrange wrote: > On Thu, Mar 14, 2013 at 12:55:15PM +0400, Dmitry Guryanov wrote: > > Add function virJSONValueFromStream, which reads data from > > a stream and passes it to json parser. When end of the object > > is reached, it returns this object. > > To avoid read

Re: [libvirt] [PATCH] json: add stream parser

2013-03-14 Thread Daniel P. Berrange
On Thu, Mar 14, 2013 at 12:55:15PM +0400, Dmitry Guryanov wrote: > Add function virJSONValueFromStream, which reads data from > a stream and passes it to json parser. When end of the object > is reached, it returns this object. > To avoid reading from the stream by single bytes it reads to > a buff

[libvirt] [PATCH] json: add stream parser

2013-03-14 Thread Dmitry Guryanov
Add function virJSONValueFromStream, which reads data from a stream and passes it to json parser. When end of the object is reached, it returns this object. To avoid reading from the stream by single bytes it reads to a buffer (in a structure virJSONStreamParserState), which should be passed to a c