[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v4 21/32] 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> --- 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 75f953d521..aabf9ad5e7 100644 --- a/tools/libxl/libxl_qmp.c +++ b/tools/libxl/libxl_qmp.c @@ -279,8 +279,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; @@ -346,7 +345,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) { -- Anthony PERARD _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |