libxl_qmp: Separate QMP message generation from qmp_send_prepare
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 25 May 2018 16:00:28 +0000 (17:00 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 11 Jan 2019 14:57:35 +0000 (14:57 +0000)
commit4a5a27c55e57d17ac8b78cf4db060249c02727e2
treee1c7a06e41b3c0583c77889b0e95769723ba62ab
parent394dd1d2d49afe31432985c6c517a0a80b9c20fd
libxl_qmp: Separate QMP message generation from qmp_send_prepare

.. to be able to re-use qmp_prepare_cmd with libxl__ev_qmp.

This patch also add the QMP end of command '\r\n' into the generated
string as every caller will needs this.

There should be no functional change.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_qmp.c