Received: from eggs.gnu.org ([2001:4830:134:3::10]:44370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aasYJ-00081g-Ra for qemu-devel@nongnu.org; Tue, 01 Mar 2016 17:14:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aasYE-0001Ub-Ni for qemu-devel@nongnu.org; Tue, 01 Mar 2016 17:13:59 -0500 Received: from mail-ig0-x229.google.com ([2607:f8b0:4001:c05::229]:38105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aasYE-0001UQ-JO for qemu-devel@nongnu.org; Tue, 01 Mar 2016 17:13:54 -0500 Received: by mail-ig0-x229.google.com with SMTP id y8so29246426igp.1 for ; Tue, 01 Mar 2016 14:13:54 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: <20160301025154.GH15213@ad.usersys.redhat.com> Date: Tue, 1 Mar 2016 17:13:53 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20160301015925.GF15213@ad.usersys.redhat.com> <54BE62FA-5E47-4E08-82BC-2021064FE29B@gmail.com> <20160301025154.GH15213@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 9:51 PM, Fam Zheng wrote: > On Mon, 02/29 21:38, Programmingkid wrote: >>=20 >> On Feb 29, 2016, at 8:59 PM, Fam Zheng wrote: >>=20 >>> 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. >>=20 >> 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 >>=20 >> In the file qapi-types.h, there is an enum called QKeyCode. I want to = add >> this to the enum: >>=20 >> Q_KEY_CODE_KP_EQUALS =3D 125, >>=20 >> Would anyone know how to do this so I can submit this change as a = patch? >=20 > You missed what I was trying to point out. >=20 > diff --git a/qapi-schema.json b/qapi-schema.json > index 7b8f2a1..ad50b06 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -3096,7 +3096,7 @@ > 'left', 'up', 'down', 'right', 'insert', 'delete', 'stop', = 'again', > 'props', 'undo', 'front', 'copy', 'open', 'paste', 'find', = 'cut', > 'lf', 'help', 'meta_l', 'meta_r', 'compose', 'pause', = 'ro', > - 'kp_comma' ] } > + 'kp_comma', 'kp_equals' ] } >=20 > ## > # @KeyValue >=20 Thank you very much for all your help.=