[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] libxl_qmp: Simplify qmp_response_type() prototype
commit a0816c2006d246ea55c8e53377d54cecf1089b04 Author: Anthony PERARD <anthony.perard@xxxxxxxxxx> AuthorDate: Fri May 25 16:18:45 2018 +0100 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Tue Aug 21 12:16:02 2018 +0100 libxl_qmp: Simplify qmp_response_type() prototype Remove the libxl__qmp_handler* argument so the function can be reused later in a different context. Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- tools/libxl/libxl_qmp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/libxl/libxl_qmp.c b/tools/libxl/libxl_qmp.c index c5e05e5679..b2b55b4853 100644 --- a/tools/libxl/libxl_qmp.c +++ b/tools/libxl/libxl_qmp.c @@ -273,8 +273,7 @@ static int enable_qmp_capabilities(libxl__qmp_handler *qmp) * Helpers */ -static libxl__qmp_message_type qmp_response_type(libxl__qmp_handler *qmp, - const libxl__json_object *o) +static libxl__qmp_message_type qmp_response_type(const libxl__json_object *o) { libxl__qmp_message_type type; libxl__json_map_node *node = NULL; @@ -340,7 +339,7 @@ static int qmp_handle_response(libxl__gc *gc, libxl__qmp_handler *qmp, { libxl__qmp_message_type type = LIBXL__QMP_MESSAGE_TYPE_INVALID; - type = qmp_response_type(qmp, resp); + type = qmp_response_type(resp); LOGD(DEBUG, qmp->domid, "message type: %s", libxl__qmp_message_type_to_string(type)); switch (type) { -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |