From nobody Thu Jan 8 13:32:23 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1767390534; cv=none; d=zohomail.com; s=zohoarc; b=lRsUihbq4FAZz9eh0pauyLUAyWN7ctBwDvbww4X/6mejIk63CHzpkrd9rkGxWUM7OCz1bZh6eiJ6fkNXrR59kAw7WZE22DvKtzkH1U6BRUvIMd6Tw7lXbnpjdMgVS7/Qv6z7HY1NKcisYvkTrKijMua/9K4j2fXaLL5kpryT2N8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767390534; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=sa5EHxYx/snq7aAH+sWySlzd4bZ6Z+JvqzA3ZIoZGIo=; b=Xc4U6kx1Z5+qS8IFl3vTCyL7olQ/3FeRzFe3A4CJsHJYsItFlVDitpSC/ghiBiiGkElkxPc+jux58uBpoAGR7dHQdexlcIThXGYyvsth9XXAqURkPn57514I3nXI1MfwaD3JfCcpD87K+eIq9M+XUGrnUSNJ0csY6thuv2M5vcI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17673905343512.9199548568401497; Fri, 2 Jan 2026 13:48:54 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vbn0W-0006lM-TD; Fri, 02 Jan 2026 16:48:29 -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 1vbmzi-0006fv-7Y for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:44 -0500 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vbmzg-0000JT-Cz for qemu-devel@nongnu.org; Fri, 02 Jan 2026 16:47:37 -0500 Received: by mail-pf1-x443.google.com with SMTP id d2e1a72fcca58-7f216280242so76491b3a.1 for ; Fri, 02 Jan 2026 13:47:35 -0800 (PST) Received: from pc.taild8403c.ts.net (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-34f476f8f3fsm62925a91.5.2026.01.02.13.47.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jan 2026 13:47:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767390454; x=1767995254; darn=nongnu.org; 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=sa5EHxYx/snq7aAH+sWySlzd4bZ6Z+JvqzA3ZIoZGIo=; b=A3fP+HcNx6kXh0fd7UREWdV5/vq1V91V/ixNW/FLxBiSYW8l/ab4ycLlccayPOaQCY gdO5OUPtSDR3BVGMppSHrFWKT/5Zu7e/HzNxsYBr7+XKm/O+FT7Ru1LOA8xm+iiW8wrf R4/hzZNwaUWVUvqrUJVpgF7t2fIyOgWqvmAFoajxWzhX3WSfiosszlUXNOxek5D1STSk Y0eDcDdHSfLu4wzYU2tDXEVB00q/tHFgPAzCKr63Z2svhdH26sIjm6JgVbf3JsLMAPDO FpAXGMflSzKOuCRxhI6/RrEB3tOlfXx2z+set4zPU83W5/Ofc3sHPvHXpJrxB4BrZy7v ZR5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767390454; x=1767995254; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=sa5EHxYx/snq7aAH+sWySlzd4bZ6Z+JvqzA3ZIoZGIo=; b=sjmo0ygtPpf7VojGD9N+F9V/moSc8sPd7VuPzbJsjBSvC6kv8nJbUTZbVVy3cOPryj PGmjdw2QG6gT2GxGa6efaOZNdzVP16uKEB0HvHL/suN5j9hYOnf1BJe9ZF/RsVa89Qt5 bTPTGyMuWq7p/mb4Ck8vTUeEwEh53JJHB9bmIA+cIYCrFFgaMa+HSKYtCzbW/1AY3MpU yX9iKxgpD4obVMvR9tNCbMQ0dj3h11zE9sG6JtN38eZdhj98hhadPF6065cuXE11r420 kZgGHX76XPtt4Hx88J+vnInaxGjdmXSCyNIwPxAEnBb1gFr5A/H+BVW2icGeb9unhjRD i+Jw== X-Gm-Message-State: AOJu0YwXQHBYFGUpx3kllCRO8C+MQnDD49XYHpLWeVaRT4XE8cCnbp6n UuAU9iXQblxsBgK0q6UtWfhsQfax+RdUMnlh3TEvhcfrx6uRLWLG81GQXA0/r5qZ2s6N0S5lxe5 ShGP1nnQ= X-Gm-Gg: AY/fxX56RsU5IalyvyibJjJVGTUiYXQMQ7NYWaao4HtNzUjcMdEpc8xTlgG0LA4fAIQ AVfXObXDz7fRF+1THTO3QXcl7juxd4OB8SGLnJiKzaRdDQF47HFshdrJPb/eZKh0z6cClfdFwfj fgUpLqZopPGR1oBYa0oaGxgFoIjMnP3M9f102ykvGP1OsZGZkbcagoDYtMYRCty1aHatiTH9MBq IqR0mrv4lyCxuGtFIuaataaQIyjMHAesUpNvDTUwssrIYOyvcUuRt+q7kJwF2Sffb6qvc/FSWRF tSDeLssZVq5jsosFcl16ndEMbtfejyc8pahBK2IBMo924QeoPU4VNvGGWiq7aStuzzdaTKvALtV xygHpnA/VJoVclj42vG6N/8OcHWy7fnp5IRrXmaj8uVRew3Rfa3DPcZ91jcJBk0/CqvwtGYJxMe H+yE4KAWfaAbTtUowKDu92zAo7o4PDn9pTK+OCxPOEWf7XPFna4FxY0M5caVyCgjgmalHXKxw3Y VA= X-Google-Smtp-Source: AGHT+IGWyC3T2PlBAqYpm0UMco2ajzJrYxA8O6X+AksTPDdjR6HfzNZqlYNe5MqV/AjpLJKWsd2aow== X-Received: by 2002:a05:6a20:258f:b0:2b9:6b0b:66be with SMTP id adf61e73a8af0-38959351d03mr777455637.14.1767390453989; Fri, 02 Jan 2026 13:47:33 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Gustavo Bueno Romero , Richard Henderson , =?UTF-8?q?Phil=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Pierrick Bouvier Subject: [PATCH v2 04/11] plugins: define plugin API symbols as extern "C" when compiling in C++ Date: Fri, 2 Jan 2026 13:47:17 -0800 Message-ID: <20260102214724.4128196-5-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> References: <20260102214724.4128196-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::443; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x443.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1767390537358158500 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- include/qemu/qemu-plugin.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/qemu/qemu-plugin.h b/include/qemu/qemu-plugin.h index 60de4fdd3fa..e44f863d839 100644 --- a/include/qemu/qemu-plugin.h +++ b/include/qemu/qemu-plugin.h @@ -16,6 +16,10 @@ #include #include =20 +#ifdef __cplusplus +extern "C" { +#endif + /* * For best performance, build the plugin with -fvisibility=3Dhidden so th= at * QEMU_PLUGIN_LOCAL is implicit. Then, just mark qemu_plugin_install with @@ -1210,4 +1214,8 @@ void qemu_plugin_u64_set(qemu_plugin_u64 entry, unsig= ned int vcpu_index, QEMU_PLUGIN_API uint64_t qemu_plugin_u64_sum(qemu_plugin_u64 entry); =20 +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* QEMU_QEMU_PLUGIN_H */ --=20 2.47.3