From patchwork Fri Feb 24 11:01:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 656251 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp833445wrb; Fri, 24 Feb 2023 03:03:17 -0800 (PST) X-Google-Smtp-Source: AK7set+8pHw+hoT5jp/JAYvl8+58scFYWH4XbfJEJOrPc4pwxNB1OLBIcJdfPIF3M2cYg+GiBo27 X-Received: by 2002:a05:622a:11c3:b0:3b9:2b0:5e7a with SMTP id n3-20020a05622a11c300b003b902b05e7amr25870955qtk.25.1677236596818; Fri, 24 Feb 2023 03:03:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677236596; cv=none; d=google.com; s=arc-20160816; b=xMbxITt5B0G/FQTWn3wCoI3nBda+MpHLTnJWD4ei7y9lRDVXDz/MxJJBRDNA+SNW7H aLXSwls5WzvqCOYlLUUNMR0picoWrtfunL8nDwwhuSDHlO3/Y52z5Nsi2UTg3V2AbGhJ 5CnRn2XhnLmFKLnHTdPE1QCeIJr2jus26EIDod6FmasA0+7WdvrIcAhAjBnV0DEFpCC/ bAgitUMgaCzej/vq4g5QfJdDfBLpQTF7co9/kLwe/72+bE4POMGepZzd6ax26PFcDeO4 RjCLz97dBsLvbe73Xfgp0PZZkgF3l77XoA+nW4GPUG7dmxbq6LbXhIZkbYsD4mXTPilg 4PWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=h6/zwyPog/cwrP7MYrakupor1MRgwzmg07kOdH/EXCk=; b=e+46JK+qKJG18IXzGHWfGpPbzu/K0jNxtTXsVp98UgBO/0Ix8B/5BTmmHQQiaPkpFh aPCTmT7F5x1PEZZXbSR8yEIWifD5AZhwHXaxsbNseOMukZ06/YDlagAHrNXZXK46MVfp 3pnORiMYLg/0RG8Ct83iqJwCePcqoKDR41CZgbJcn3H7LoO0OKTeUfyyKOfypGlpGoDh 0vtNWgDt4nPpFvAfNgfaCegOIpw6kJKkMzLCiCnx1BCYkctzK4eHmqSpd07p6YYxbPcV /JnvfE0fn5JfeM3kPuf75+Jb8aAOtvgDolFl5OVGVt+vlzw5Og2h8GSB6d6UtM9oarGO vyeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=irSl9O4Q; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bi31-20020a05620a319f00b00731a76883b8si5875939qkb.472.2023.02.24.03.03.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Feb 2023 03:03:16 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=irSl9O4Q; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVVpx-0006VQ-Bt; Fri, 24 Feb 2023 06:02:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVVpw-0006Tc-8W for qemu-devel@nongnu.org; Fri, 24 Feb 2023 06:02:00 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVVpu-0000mt-GV for qemu-devel@nongnu.org; Fri, 24 Feb 2023 06:02:00 -0500 Received: by mail-wr1-x42f.google.com with SMTP id h14so4830836wru.4 for ; Fri, 24 Feb 2023 03:01:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=h6/zwyPog/cwrP7MYrakupor1MRgwzmg07kOdH/EXCk=; b=irSl9O4Q4nzBlganWVEJ9f4o/+wjfGPnwxjS10cz3LTsBk9dqPlzYWfi0lHgLu0aYx pSzao/RbWAWV7whwamkviHqsBc7zBktndQvnLQpbHZxn44QwYCB9GwHeigLsL9vYD2a8 hPsONM1gZQBYSW3ugyCRmMjlbUgVhhWQiowW/TSg9EUKrpAaYSgUhFgF5WbcthG8o3bJ qXwkG0DiMSnXB8v+5G9bPRW4ZcNT+u6mJBXfjYChfYnTE7SMR2RzDqn9hiC1Fl+90Qya TNL8ZZ1LFmRVreNixpNBhPPhZ0lkdF50alygBJszh51BdBEog2AAkMgmKD/UtL+oDSy4 T/Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h6/zwyPog/cwrP7MYrakupor1MRgwzmg07kOdH/EXCk=; b=AYYYJxLNcDWG23PINZKNYgIza0v4c+oD7IrMrkqBNqXTMw0hKRYYCg/aERsYUEUINA At1uXKn+qAlrHIZk+0g8ylw2LJRWOuE+CTQaOV+z4fPEOIWZ1GtQ7opCEBGfR0bVyUsX pQksT7RCtydvy+J/rjzbKw71AmDc26GoCKydbstvw/0R0QOu5Q9KWOnCNKh1U9zVd77x pDraTvgJMAodGhQcjHHJvp5elu9e3efLyd0+lRYxruKpINQAk+SGxVG/GDpPU7mO4AIr W+eTUY1pCLNrwbXYw1AKdNtalfhGMxVCqJAI2gZfbroRAiAnrHi3fC/+w3Y1zDH6Flsx hwCA== X-Gm-Message-State: AO0yUKUymu1I7x+q7I2ySn1jrC1ZoNhhrnFr43s9tOaowgws1BgJIJu9 qVZpsH81jIaXIgAEqVGfRZvoM07lb1WTD43I X-Received: by 2002:adf:dd86:0:b0:2c7:e60:a41d with SMTP id x6-20020adfdd86000000b002c70e60a41dmr6207913wrl.61.1677236515980; Fri, 24 Feb 2023 03:01:55 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id x8-20020adfdd88000000b002c58ca558b6sm12352466wrl.88.2023.02.24.03.01.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 24 Feb 2023 03:01:55 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Gerd Hoffmann , Eric Blake , Markus Armbruster , Akihiko Odaki , Peter Maydell Subject: [PATCH 0/2] ui/kbd-state: QAPI'fy QKbdModifier Date: Fri, 24 Feb 2023 12:01:51 +0100 Message-Id: <20230224110153.8559-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=philmd@linaro.org; helo=mail-wr1-x42f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org QAPI seems designed to maintain such enums, so convert QKbdModifier to be QAPI generated. Besides, this is how QKeyCode is maintained. Philippe Mathieu-Daudé (2): ui/kbd-state: Rename QKbdModifier enum definitions ui/kbd-state: QAPI'fy QKbdModifier include/ui/kbd-state.h | 16 ---------------- qapi/ui.json | 10 ++++++++++ ui/cocoa.m | 2 +- ui/kbd-state.c | 14 +++++++------- ui/keymaps.c | 6 +++--- ui/sdl2-input.c | 2 +- ui/vnc.c | 16 ++++++++-------- 7 files changed, 30 insertions(+), 36 deletions(-)