From patchwork Tue Mar 1 02:51:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fam Zheng X-Patchwork-Id: 8461031 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 988AE9F52D for ; Tue, 1 Mar 2016 02:52:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DF9FC201FE for ; Tue, 1 Mar 2016 02:52:12 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 29F5A201EC for ; Tue, 1 Mar 2016 02:52:12 +0000 (UTC) Received: from localhost ([::1]:40396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaaPz-0007HJ-G6 for patchwork-qemu-devel@patchwork.kernel.org; Mon, 29 Feb 2016 21:52:11 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaaPs-0007Gq-Rg for qemu-devel@nongnu.org; Mon, 29 Feb 2016 21:52:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaaPo-0004z0-RD for qemu-devel@nongnu.org; Mon, 29 Feb 2016 21:52:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaaPo-0004yw-LZ for qemu-devel@nongnu.org; Mon, 29 Feb 2016 21:52:00 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 1E0F48E362; Tue, 1 Mar 2016 02:52:00 +0000 (UTC) Received: from localhost (dhcp-14-148.nay.redhat.com [10.66.14.148]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u212pu8b024669; Mon, 29 Feb 2016 21:51:58 -0500 Date: Tue, 1 Mar 2016 10:51:54 +0800 From: Fam Zheng To: Programmingkid Message-ID: <20160301025154.GH15213@ad.usersys.redhat.com> References: <20160301015925.GF15213@ad.usersys.redhat.com> <54BE62FA-5E47-4E08-82BC-2021064FE29B@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <54BE62FA-5E47-4E08-82BC-2021064FE29B@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: qemu-devel qemu-devel Subject: Re: [Qemu-devel] How to make changes to qapi-types.h X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Mon, 02/29 21:38, Programmingkid wrote: > > 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? > > > > 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. > > 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 = 125, > > Would anyone know how to do this so I can submit this change as a patch? You missed what I was trying to point out. 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' ] } ## # @KeyValue