Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp429192rdb; Mon, 29 Jan 2024 06:44:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IENLMbyoCm15bRVjh1J7tulCsl8A1b+qgIgUg6flryvUoW9BRMUm/Zf1Np8ME5LVS0huZ+h X-Received: by 2002:a17:906:28c4:b0:a26:90a0:696e with SMTP id p4-20020a17090628c400b00a2690a0696emr4553942ejd.41.1706539476928; Mon, 29 Jan 2024 06:44:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706539476; cv=pass; d=google.com; s=arc-20160816; b=wNwD31qUnTqYxXDaFt6wy2+DqfzjLBWGLntLVSDMAuP4E8jpMOt6ydmTx7agNa945U rG/FMDHud6vfAWzFhhn+vKhY0xjCGc0bILUgStBM5kqh5RDjU7t9Ynek+GatU6DoD8R+ GNin0nRHUpl/OuMQVCu1QgC180cFkPgriDiDV6UE54Z62PJ8p6/b+MjYo16vvMrgWZ24 Ix03+G5VGy4AtWCycFHGM3CYzYrhjE+dF2wfM+uv4JSP4whd16moc5VfMgPIIeXC/y39 OFPPpdT0l/lNSO83CjKZ9zxsq/3t3ZyqByHb5g1kQ89AFFASpfe4t8MGFdZnYyEgP4Aq dY2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=EsaaVul1Cxu0xNiHt0ZVZKocoxTFsFguocrD4BfNqkM=; fh=wm3knQjNzlzhSYO3l6/R1dJNTO7aXLaAzT309a/t7Bw=; b=MJ5D/B7/wzCvNNZ+eOkx9oJlPqVrfG9xOzk3PQeBkg/lJnVNYj/CYSsy6Wh1IMjPLx Bpcyb0JwhHaD3QPzAt2nfBaqj6r34VC0+Ic6S6wVm4t4qbDp99HxDuDNs4mi/e1RVDUy 54QXzecGpuZtnIXbn1ODpw+CzW8CnnxIlggOa807wSHQYZKRrC523OmaOby9WNKL/8xJ ynY0g5HL7rcZgGXBxpJ6NjBgJ6xwKVzy/4bYn+T2J996nD24N+T1BuoDwYp02hyiz43q +N5nT8l31QKHmKJxxZbW60tFdUXUKm6pXsGLCknUW1NthWrje589+sk1cQTxQrr0yYPY Roaw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HoXbC1v8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-1441-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h18-20020a1709063c1200b00a3058e3c4d4si3518941ejg.153.2024.01.29.06.44.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 06:44:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1441-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HoXbC1v8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-1441-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AA1AB1F26DC0 for ; Mon, 29 Jan 2024 14:44:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D49C11534E6; Mon, 29 Jan 2024 14:44:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HoXbC1v8" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B4C266B40 for ; Mon, 29 Jan 2024 14:44:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706539457; cv=none; b=qWooKvu9bqQF64hothf/ktMp+c4t4Y42jQx8UDy1TzyLOTmdtW77rVgW0D0LTTfRPoaS03wTDi5Dvbu0Ni1jAwMzuotV18W5NYmvaBAvFXGUdUG7cLJlus2Tc06iCBz/BiBCi6g/uMkDorI57iBRYVPONgrHBtzGVirJ7TsxnMM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706539457; c=relaxed/simple; bh=T41AqRzZ9anzy8KgZAVF0U4kwCqsFRwAQlKY9yqeluE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PZ/YhtJUdUsmhStKA1KeTkR1zTbESSiRBfllfXBlGxbNTEJ0vXGruAGpGte0rVPrg5+Q6gS2rZL5/7kVM7zpfrO9XqacjitRlyYdIaQc8oyTGsjRfqdIoRX78pQCv2Ko5WzOw5/g3IaOFxg6xBe1vO6hXe/njiKQKF4WctgMWlM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HoXbC1v8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id D1071C433C7; Mon, 29 Jan 2024 14:44:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706539456; bh=T41AqRzZ9anzy8KgZAVF0U4kwCqsFRwAQlKY9yqeluE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=HoXbC1v80x9bs4MgtcoQrj0Z6zMsG2BpDpX7gwWSSCy9WhhCOin2R7ddkw03BkSVU jxvwL2yUiBQQNBoMovqypxaQvVGuq2TgzVCUKiDo5XcZ6OO7274niLwPROPu5qtWbM cVj4++wNZl9DDnUmtJLYCZDRDr9polqV5DBeFE1FT+cJ+lG0lHzeDAbn+x+fY/2OfV JwaBkIOWTToeFx3Pr6VgYpvYBn3EVQp5QaWRX53IHYTfTVegUnu2kIRCUC1mEDAyUI bf94F2NPKHN15urjT5TpY3974OZrlxTbvbJtiZZQbeMxqSYEJeH9AB36XkCrI5NwX4 G0kOVG0iaM2ow== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5581C47DDF; Mon, 29 Jan 2024 14:44:16 +0000 (UTC) From: Emil Velikov via B4 Relay Date: Mon, 29 Jan 2024 14:44:15 +0000 Subject: [PATCH BlueZ v4 1/8] configure, README: introduce --enable-external-plugins Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240129-rm-ext-plugins-v4-1-bfd1e08c7f99@gmail.com> References: <20240129-rm-ext-plugins-v4-0-bfd1e08c7f99@gmail.com> In-Reply-To: <20240129-rm-ext-plugins-v4-0-bfd1e08c7f99@gmail.com> To: linux-bluetooth@vger.kernel.org Cc: Emil Velikov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706539455; l=2129; i=emil.l.velikov@gmail.com; s=20230301; h=from:subject:message-id; bh=TURnkD96L8lhhZthFxY3kbYoSxFEDANByCVJaEdcrOg=; b=OfKLp3lmunDbO7SjD7ptcG7Qsp0A7Ef092N5KC4EjC4bBBcdkUFQCFyaIcEUTotTlBf02WBHn 7UV3hCvEGk6CYNaD3JY5SPTRt1b06qFnO4HHESYYrIJybQz3D97ktHG X-Developer-Key: i=emil.l.velikov@gmail.com; a=ed25519; pk=qeUTVTNyI3rcR2CfNNWsloTihgzmtbZo98GdxwZKCkY= X-Endpoint-Received: by B4 Relay for emil.l.velikov@gmail.com/20230301 with auth_id=35 X-Original-From: Emil Velikov Reply-To: From: Emil Velikov As the README chunk says, disabled by default, since they rely on internal API/ABI and can break at any point. Instead everyone affected should work and upstream their plugin into the bluez project. --- README | 13 +++++++++++++ configure.ac | 10 ++++++++++ 2 files changed, 23 insertions(+) diff --git a/README b/README index 7de7045a8..6c0777046 100644 --- a/README +++ b/README @@ -249,6 +249,19 @@ For a working system, certain configuration options need to be enabled: systems. The behavior of the deprecated tools may be unstable or simply don't work anymore. + --enable-external-plugins + + Enable support for external plugins + + By default external plugins for bluetoothd and obexd are not + supported and thus disabled. + + External plugins require access to internal, undocumented and + unversioned API in said daemons. As such they can break at any + time. If you have such plugins, enable this option and work + actively with the community to make said plugin part of the + upstream bluez project. + --enable-nfc This option enable NFC pairing support. diff --git a/configure.ac b/configure.ac index b4d362494..5eb7ee0e0 100644 --- a/configure.ac +++ b/configure.ac @@ -364,6 +364,16 @@ AC_ARG_ENABLE(deprecated, AS_HELP_STRING([--enable-deprecated], [enable_deprecated=${enableval}]) AM_CONDITIONAL(DEPRECATED, test "${enable_deprecated}" = "yes") +AC_ARG_ENABLE(external-plugsin, AS_HELP_STRING([--enable-external-plugins], + [enable support for external plugins]), + [enable_external_plugins=${enableval}]) +AM_CONDITIONAL(EXTERNAL_PLUGINS, test "${enable_external_plugins}" = "yes") +if (test "${enable_external_plugins}" = "yes"); then + AC_DEFINE(EXTERNAL_PLUGINS, 1, [Define if external plugin support is required]) +else + AC_DEFINE(EXTERNAL_PLUGINS, 0, [Define if external plugin support is required]) +fi + AC_ARG_ENABLE(sixaxis, AS_HELP_STRING([--enable-sixaxis], [enable sixaxis plugin]), [enable_sixaxis=${enableval}]) AM_CONDITIONAL(SIXAXIS, test "${enable_sixaxis}" = "yes" && -- 2.43.0