qapi: add QMP dispatch functions
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 19 Jul 2011 19:50:37 +0000 (14:50 -0500)
committerLuiz Capitulino <lcapitulino@gmail.com>
Thu, 21 Jul 2011 19:48:14 +0000 (16:48 -0300)
commitab02ab2aa7a36d78a579642caa404abd99acdc6e
tree804fb89fd19dcb31be40173edcfc1311684987b6
parent43c20a43ca4b3fa265469887186eb0fee68e4a0d
qapi: add QMP dispatch functions

Given an object recieved via QMP, this code uses the dispatch table
provided by qmp_registry.c to call the corresponding marshalling/dispatch
function and format return values/errors for delivery to the QMP.
Currently only synchronous QMP functions are supported, but this will
also be used for async QMP functions and QMP guest proxy dispatch as
well.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
Makefile.objs
qapi/qmp-core.h
qapi/qmp-dispatch.c [new file with mode: 0644]