From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZnuN-0001i7-0d for qemu-devel@nongnu.org; Wed, 09 Sep 2015 18:32:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZnuJ-0008HQ-0b for qemu-devel@nongnu.org; Wed, 09 Sep 2015 18:32:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZnuI-0008HM-Rf for qemu-devel@nongnu.org; Wed, 09 Sep 2015 18:31:58 -0400 References: <65D87A2B-B94F-4236-A9BB-D0F0B7FCF96B@gmail.com> <26B5A68C-92C9-4528-BA17-4A282DCFF035@gmail.com> <87fv2og36d.fsf@blackfin.pond.sub.org> <9F6A7240-9CB8-41E2-AB87-B74CD7961191@gmail.com> <8737yocap6.fsf@blackfin.pond.sub.org> <16D5C709-5630-4919-BE13-6B1DB4B860F8@gmail.com> <55F0B1C9.8070204@redhat.com> From: Eric Blake Message-ID: <55F0B35D.4080509@redhat.com> Date: Wed, 9 Sep 2015 16:31:57 -0600 MIME-Version: 1.0 In-Reply-To: <55F0B1C9.8070204@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2m3dt6mFroBsog8plRGoJDHd1r5ROULWn" Subject: Re: [Qemu-devel] [PATCH] ui/cocoa.m: Add Mount image file menu item List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Programmingkid , Markus Armbruster Cc: Peter Maydell , qemu-devel qemu-devel This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --2m3dt6mFroBsog8plRGoJDHd1r5ROULWn Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 f= ar: >> >> Error **errp; >> char *commandBuffer; >> commandBuffer =3D 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); --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --2m3dt6mFroBsog8plRGoJDHd1r5ROULWn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJV8LNdAAoJEKeha0olJ0NqCfEH/A9M9UOC812zPbDoW4ByoxIw v/ER2uEqe8iJfuHfMfHP5uWgtA5HQPaTfLIHlkMeUr/fw9yM5nOe7T1gwgyZXINa JKdUM5l5uAEtkRxbmFLqLghC8JNUPVK5vATaB7s3A027Q0D0HEz8fKDxyJ3LiQBL jzrk8NuIojAniFaRc6M/1Augv/n8FTLS3cwZwTjB3bZT40ZNSfM0iuFbS7AYZCFl iADPfaO+RpajlicrG7NBLlLvpmvCvj/H4id/0FE7kzlb1vte94HfrAUiQ2ObTjt5 vfoWrfgA2fVp/W6W7cUQyQKqI5g37Rm4Sb6ZbGSvcNVlx/SC8c3o5P4lRAOnsm8= =+yPh -----END PGP SIGNATURE----- --2m3dt6mFroBsog8plRGoJDHd1r5ROULWn--