From patchwork Fri Aug 18 03:36:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiko Odaki X-Patchwork-Id: 1822666 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=daynix-com.20221208.gappssmtp.com header.i=@daynix-com.20221208.gappssmtp.com header.a=rsa-sha256 header.s=20221208 header.b=nESUpj2s; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RRng71Nt2z1ygH for ; Fri, 18 Aug 2023 13:39:31 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWqJR-00046D-Cr; Thu, 17 Aug 2023 23:38:13 -0400 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 1qWqJP-00042a-R7 for qemu-devel@nongnu.org; Thu, 17 Aug 2023 23:38:11 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qWqJM-00068w-MQ for qemu-devel@nongnu.org; Thu, 17 Aug 2023 23:38:11 -0400 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-68879c7f5easo417874b3a.1 for ; Thu, 17 Aug 2023 20:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20221208.gappssmtp.com; s=20221208; t=1692329887; x=1692934687; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3o76KcQlFp/MuUPscQNwseGhYtySE7hW349U50r8SMs=; b=nESUpj2s91OOZEVxjO+tv79Nz9Em+KEWPuCLHPL6Xmw0UKiAwtXStfzeqaANwFvhxT cqS+42Vw7xDSAKt65oEVW8cr3xelYi9bNHgzgX4gEbizmXW7LXuWoEYbjmy6Rn3qMM4a rPk1ycQ4OQoPgNo189zH1J77fgqf9yeQV4ZU5RxSu82YojZ7wmePun+5LlU8gg4cA1bf Enuge0mKR9+kivriFnw75hGp0vIYMQF25r6MIOhb1ppy4fbfdbsiSEfJ3frCPUThP8D4 4ZYQFA9KK3+1w9nI8/ZZC6RCTPG4TcbRAE68mKwKMPnK0WzjieMvqwDv9XRjyQxIEN8s OvRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692329887; x=1692934687; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3o76KcQlFp/MuUPscQNwseGhYtySE7hW349U50r8SMs=; b=fL3WI4dZRgYFTv6mcCJFEEkTkfiyUEdab6DdNsI+2qhliosJcpKmZBrpRV4R/7CJdu WWEQeTCu3+Ca0QOc+n0Kb1uSJPhw20ik57t7XM0WpBqMkKdEwh0ICNYG6qMBBUYMfOVt pkg4/t6HuOnouxRSLMTah8vGsG+saDHun6XievSj7rP7P1GFfKwrfcIK1dfTyB0CHbFT eev+j81FxBhqVkNJM0pyEMK7Qa60D2aamSeCPwHMULEr5j83nhR2wFhr50RHaAIq2mvX pF4SMhWYJy30xu2MWbefij10iSI2jfYS4rgZApeA5Cje1+xfABWIGLNAPkxFgTdI50yx pLrg== X-Gm-Message-State: AOJu0Yz/F2jwopA2mP79cGL22sB9mPadivzkkdA9uYDY5Y4YSFzxH6eC vfJkRo8OzwDb0Yb79DxNPTVIiw== X-Google-Smtp-Source: AGHT+IEkdhE3nI0eS/6QsydBibmKq7ud6kpnGHn3rMlvO26mWcxPIfUkTSzMQ92r8e4c/mdFbpbrtw== X-Received: by 2002:a05:6a20:9719:b0:134:40f0:5d04 with SMTP id hr25-20020a056a20971900b0013440f05d04mr1571770pzc.13.1692329887542; Thu, 17 Aug 2023 20:38:07 -0700 (PDT) Received: from alarm.flets-east.jp ([2400:4050:a840:1e00:78d2:b862:10a7:d486]) by smtp.gmail.com with ESMTPSA id c24-20020aa781d8000000b00686a80f431dsm484135pfn.126.2023.08.17.20.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Aug 2023 20:38:07 -0700 (PDT) From: Akihiko Odaki To: Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Mikhail Tyutin , Aleksandr Anenkov , qemu-devel@nongnu.org, Akihiko Odaki Subject: [PATCH RESEND v5 25/26] plugins: Support C++ Date: Fri, 18 Aug 2023 12:36:44 +0900 Message-ID: <20230818033648.8326-26-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230818033648.8326-1-akihiko.odaki@daynix.com> References: <20230818033648.8326-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Received-SPF: none client-ip=2607:f8b0:4864:20::42a; envelope-from=akihiko.odaki@daynix.com; helo=mail-pf1-x42a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Make qemu-plugin.h consumable for C++ platform. Signed-off-by: Akihiko Odaki --- include/qemu/qemu-plugin.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/qemu/qemu-plugin.h b/include/qemu/qemu-plugin.h index 214b12bfd6..8637e3d8cf 100644 --- a/include/qemu/qemu-plugin.h +++ b/include/qemu/qemu-plugin.h @@ -16,6 +16,8 @@ #include #include +G_BEGIN_DECLS + /* * For best performance, build the plugin with -fvisibility=hidden so that * QEMU_PLUGIN_LOCAL is implicit. Then, just mark qemu_plugin_install with @@ -723,4 +725,6 @@ qemu_plugin_get_register_files(unsigned int vcpu_index, int *size); */ int qemu_plugin_read_register(GByteArray *buf, int reg); +G_END_DECLS + #endif /* QEMU_QEMU_PLUGIN_H */