Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp571500ybi; Wed, 19 Jun 2019 04:25:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkCHdA/ofpRiS07JoGIsBOs1hv01Mw+LCxER4DBN6ff0OdzG4+bceYVuq0Njs7yOrSgIbp X-Received: by 2002:aa7:8d89:: with SMTP id i9mr84550953pfr.77.1560943543544; Wed, 19 Jun 2019 04:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560943543; cv=none; d=google.com; s=arc-20160816; b=ODN1TtU32K8MdDURo241STgsPzPVwDwUVKqt3yv+5CChl01gQOqhfznh5Kp5N3PWDl KPWIkDorreLaBYP/nE8BQTFPnyrkbcvBWaLcGdc7DKXFHZTg+9LA73FhxUpZhgEDx3K+ yr6tndAOjf7estOBdYRsMoNEBv7Ihd9GVU5pgNH/fx2ZonMIKM4ttlYAW0JMiT9gcrwU EZv+szTjDU0Ggv0UVPaH5FgaAxFBHZYAjJ8JO4XiEWOS3vnVaO7MgZIBvdQGwtdWNH0N OHD1uLFQIdWixU1DwBNMt5z+qYuzurWGnMG72ZPRU8grTduFCx5QaeLZfPbjfsY5o8pX P11Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=irbYFP+e2fgTooBori7Ytfy6o7Xv5RFxprkVWRfTosM=; b=YdCubDTbz3U3K3CpOJSazl+T/EKVPePmrtcK8hnt19lLHfBQHHdEZ7cIb45y9zQXHI XDIbRHB1qFSiCmjuKaQweXG3iWQkyO4e3KiR3Ma7ZvOssVLoxUrxz9KyGTt3sLPF01G4 Ddl7k+qzWHTLKGS7J1g3/EESNduDbTzcqovez70+ePeRO5NCcktxNibBJ27+nWoWsi22 DUB7E1UuD5N4OP6N2BcgFzYxyRTgEFNiANbpseTob+59emgBtaH7EHWRy7ynuMxXYUw+ kwh+8mG8sTH8wkuEmBuMYn/JF0+FLkSOwStDNXLO1BQL6ARBlTdFG+OpUOiOgRHYOvKJ K7uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=lttl16+w; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k27si323190pgl.417.2019.06.19.04.25.17; Wed, 19 Jun 2019 04:25:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=lttl16+w; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727124AbfFSLZL (ORCPT + 99 others); Wed, 19 Jun 2019 07:25:11 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:42155 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726826AbfFSLZK (ORCPT ); Wed, 19 Jun 2019 07:25:10 -0400 Received: by mail-lj1-f194.google.com with SMTP id t28so611546lje.9 for ; Wed, 19 Jun 2019 04:25:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=irbYFP+e2fgTooBori7Ytfy6o7Xv5RFxprkVWRfTosM=; b=lttl16+wExa1VC6+ACxLbp6CtITnWmWAAQNCOyqX4zZtFIrLL6UOTRMTkgWpwhep50 8/ci1rh+UO/dNcnchXsolkHnlNYo3YgQiSqg48ccYYmIg60C7xmXfhQg4T8vnqnxZF86 hgvWorVU/UeVz8hnaZGKMnfk1A48Bgh0STQ7YN127O5Hvmyo8PWNCScKqjXdejl0Nl7d ODKfUk0JZVcGW4tqVAkGTgXmjVYlvGjHK0u2sedyXsjwbx2v9H4vCWswiCFzWwCFGUGP sVyIIbCyb5PVjcGdAXZN4b3WpMoTqxxiz2DV162cPRuk0lCBMFwjoB3M3LqLi84F2hoX hgcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=irbYFP+e2fgTooBori7Ytfy6o7Xv5RFxprkVWRfTosM=; b=cBa+VdC1mM9uN98YrEGaDcu/Z0yPHSZqjhUkjRohUHmlVz3WrzcW78BIBdeU33BuMd /sgwsKDXzK7qZvfD4iIUL2s2nSS7mZwVHTHqe8VSn1TusLuYIGxViop2FeyYFFAYBCNb 2++kdlxKebUpd18mdV6SmaNgDGU450bBJIUfovSKGSc64rCjGwf1I3qkHPnptfHeLHhl rDf1EDD3GkgBvu+Kpjyn0nLqvIe43TNv5j0wzbenks7B+G1uuIMC+Va4q1coUhLudfFP 5qu7TvnV/z4WWEfQhugO0SYueXAmjbU4ANHCieYj2rw4teCmMgiSvF3ICdfHqLVEunK3 byRg== X-Gm-Message-State: APjAAAUX1FjKPhGbpjYlcQ+LXvYO23BgV6WLLICpgYant1K1Dr5jxhe0 ly4pC+r7d8HuEbQ7HycuQQZOf69aUTc= X-Received: by 2002:a2e:3a13:: with SMTP id h19mr2817783lja.220.1560943508629; Wed, 19 Jun 2019 04:25:08 -0700 (PDT) Received: from mlowasrzechonek2133.silvair.lan ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id u13sm2635066lfc.5.2019.06.19.04.25.06 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 19 Jun 2019 04:25:07 -0700 (PDT) From: =?UTF-8?q?Micha=C5=82=20Lowas-Rzechonek?= To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v2 0/2] mesh: Move HCI handling to mesh-io-generic Date: Wed, 19 Jun 2019 13:25:01 +0200 Message-Id: <20190619112503.3398-1-michal.lowas-rzechonek@silvair.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This version of the patchset extracts MGMT handling into a new module, mesh-mgmt, and changes --index daemon option to --io, allowing more flexibility when selecting io layer. MichaƂ Lowas-Rzechonek (2): mesh: Move HCI handling to mesh-io-generic mesh: Changed --index option to --io Makefile.mesh | 1 + mesh/main.c | 75 +++++++++++---- mesh/mesh-io-api.h | 3 +- mesh/mesh-io-generic.c | 63 ++++++++----- mesh/mesh-io.c | 17 ++-- mesh/mesh-io.h | 2 +- mesh/mesh-mgmt.c | 207 +++++++++++++++++++++++++++++++++++++++++ mesh/mesh-mgmt.h | 23 +++++ mesh/mesh.c | 189 +++---------------------------------- mesh/mesh.h | 4 +- 10 files changed, 354 insertions(+), 230 deletions(-) create mode 100644 mesh/mesh-mgmt.c create mode 100644 mesh/mesh-mgmt.h -- 2.19.1