On Wed, 11 Nov 2009 13:39:29 -0600 Anthony Liguori <anth...@codemonkey.ws> wrote:
> Luiz Capitulino wrote: > > I think we should abort() on error, assuming the only way to fail > > is a bad syntax. > > > > We'll be using qobject_from_jsonf() to parse incoming QMP traffic. We > definitely don't want to abort when we receive invalid input on the QMP > port. Best to just close the session and let the user connect again. Sure, I just wouldn't like to add a check on every handler call to qobject_from_jsonf(). What about a new wrapper?