libxl: add convenience macros to qmp_send() in libxl_qmp.c
authorKelley Nielsen <kelleynnn@gmail.com>
Mon, 11 Nov 2013 10:08:57 +0000 (02:08 -0800)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 11 Nov 2013 12:16:50 +0000 (12:16 +0000)
commite273738ef1df2e376921ef59c236662d72d0cafa
treea73c7cfb82e5f05466519fc7fbc869b58b2c0410
parent930921ccb14f005cffa093a43dcb374798626338
libxl: add convenience macros to qmp_send() in libxl_qmp.c

Update qmp_send() in libxl_qmp.c to use the new convenience macros
declared in libxl_internal.h. Uses GC_INIT at the top of the function,
and GC_FREE at the exit. Since GC_INIT returns a libxl__gc by reference
and not by value, remove the address operator from the left of the
variable gc where it is passed as a parameter.

Suggested-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Kelley Nielsen <kelleynnn@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_qmp.c