From: Eric Blake <eblake@redhat.com>
To: Programmingkid <programmingkidx@gmail.com>,
Markus Armbruster <armbru@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
qemu-devel qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] ui/cocoa.m: Add Mount image file menu item
Date: Wed, 9 Sep 2015 16:31:57 -0600 [thread overview]
Message-ID: <55F0B35D.4080509@redhat.com> (raw)
In-Reply-To: <55F0B1C9.8070204@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 802 bytes --]
On 09/09/2015 04:25 PM, Eric Blake wrote:
>> That leaves QMP. I am trying to figure it out. This is my attempt so far:
>>
>> Error **errp;
>> char *commandBuffer;
>> commandBuffer = g_strdup_printf("{ \"execute\": \"quit\" }");
>> qmp_query_command_line_options(false, commandBuffer, errp);
>> printf("Program should quit now\n");
>>
And if you're trying quit, then query-command-line-options is not how
you do it. In QMP, quitting is done by:
{ "execute":"quit" }
which per qmp-commands.hx is serviced by qmp_marshal_quit() [was
qmp_marshal_input_quit()], which calls into qmp_quit(). So if you're
trying to quit qemu, you would do:
Error *err;
qmp_quit(&err);
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2015-09-09 22:32 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-02 0:56 [Qemu-devel] [PATCH] ui/cocoa.m: Add Mount image file menu item Programmingkid
2015-09-02 9:05 ` Markus Armbruster
2015-09-08 16:17 ` Peter Maydell
2015-09-08 16:39 ` Programmingkid
2015-09-08 16:54 ` Peter Maydell
2015-09-08 18:46 ` Markus Armbruster
2015-09-09 3:02 ` Programmingkid
2015-09-09 7:29 ` Markus Armbruster
2015-09-09 21:37 ` Programmingkid
2015-09-09 22:25 ` Eric Blake
2015-09-09 22:31 ` Eric Blake [this message]
2015-09-09 23:35 ` Programmingkid
2015-09-09 23:34 ` Programmingkid
2015-09-10 7:17 ` Markus Armbruster
2015-09-10 3:28 ` Programmingkid
2015-09-10 7:21 ` Markus Armbruster
2015-09-10 16:22 ` Programmingkid
2015-09-10 17:15 ` Markus Armbruster
2015-09-10 17:40 ` Programmingkid
2015-09-11 7:09 ` Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55F0B35D.4080509@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=programmingkidx@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).