Received: from eggs.gnu.org ([2001:4830:134:3::10]:53833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaaD4-0000Ho-NH for qemu-devel@nongnu.org; Mon, 29 Feb 2016 21:38:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaaCz-0001bQ-Nb for qemu-devel@nongnu.org; Mon, 29 Feb 2016 21:38:50 -0500 Received: from mail-io0-x234.google.com ([2607:f8b0:4001:c06::234]:33279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaaCz-0001bD-Bh for qemu-devel@nongnu.org; Mon, 29 Feb 2016 21:38:45 -0500 Received: by mail-io0-x234.google.com with SMTP id n190so5190890iof.0 for ; Mon, 29 Feb 2016 18:38:45 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: <20160301015925.GF15213@ad.usersys.redhat.com> Date: Mon, 29 Feb 2016 21:38:43 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <54BE62FA-5E47-4E08-82BC-2021064FE29B@gmail.com> References: <20160301015925.GF15213@ad.usersys.redhat.com> Subject: Re: [Qemu-devel] How to make changes to qapi-types.h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: qemu-devel qemu-devel On Feb 29, 2016, at 8:59 PM, Fam Zheng wrote: > On Mon, 02/29 20:26, Programmingkid wrote: >> I need to add a variable to the QKeyCode enum in the file = qapi-types.h. This >> file is auto-generated so using traditional means to create a patch = is not >> possible. Would anyone know how I can add to this file? >=20 > The file to look at is qapi-schema.json. The generator is also = documented in > docs/qapi-code-gen.txt. Thank you very much for your help, but the information in the files you = sent did not seem to help. Maybe I should say exactly what I'm trying to = do.=20 In the file qapi-types.h, there is an enum called QKeyCode. I want to = add this to the enum: Q_KEY_CODE_KP_EQUALS =3D 125, Would anyone know how to do this so I can submit this change as a patch?=