Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2106228ybd; Mon, 24 Jun 2019 00:33:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5rRfjsZP+qxl3sYZteyM1dMkoV0m0KS6xXcY38ofO+fgSAFo1RARzOg318AJCyIhtFdFi X-Received: by 2002:a17:902:76c6:: with SMTP id j6mr121380016plt.263.1561361620221; Mon, 24 Jun 2019 00:33:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561361620; cv=none; d=google.com; s=arc-20160816; b=iEg6Qb7+ZwDve0Xi9W7c9rmJcDbsCaiZBxI/9/KWEt6eUad4UjQ7QPUGyRi1b0nQWw TL/Jn7ze9otYtSjt81HCTGaMsHYPJ+JwHf8ldZF4uI2Sf1dI1h/ub2QH8C1RbxWNNc5W th+XnIBch3aCcdQmW/Fwita+LaBFnAB2O+pKSipnrJNzQ3+CA/CLPfPCQu3hNtL1kfYn tA4pKkJkV6PGQvdIen99g6zwUo1sxrOZNidy2BNj8BGvUubmrIsvWA6TIjJ0w9tAgMyD uqCbmibziKhoeNMa6UecbhzLwC0cyldVkHlzI+m6MRTfag2ZnRKjuFYoCnkld9Z8xAdO aiFQ== 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=UumPiBjFTuL4dc3jLD4Cp7hwqG00noau7fcysxyeln0=; b=0XSwePX5B9Ay3Ey+uAilMAevismOU0Sq5++0yibLfFJNADpsi2bHqWgKXNrGOWftx/ WIZkJ3SBRYdgW0PX8KUn0J57iRe04U5WOabJrVGSgTeC9FPdyO62MQ8uTHbbrDMKSGIC hR8HUECqOpJdXF91pt781ibXWBhlCLO8wED14F9wlVquIRFd8a4UGk1VO0iwCpjl+t95 w7DQjsXyKDp+XwpB3maWUoFeOCrmPDMINEWL9SHZ5fe88D4wt9ya5h9icfbLSe4wrbou uMDWMswRRXucl0+1bbwgapBoHbtYnq+17KUTJQoPrx7wavHeG+QrOCT1DQ+qYIODgyqK 2Xhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b="z/X62Zll"; 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 35si9567943pgn.199.2019.06.24.00.33.25; Mon, 24 Jun 2019 00:33:40 -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="z/X62Zll"; 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 S1727267AbfFXHcf (ORCPT + 99 others); Mon, 24 Jun 2019 03:32:35 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:35269 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726323AbfFXHcf (ORCPT ); Mon, 24 Jun 2019 03:32:35 -0400 Received: by mail-lf1-f68.google.com with SMTP id a25so9262390lfg.2 for ; Mon, 24 Jun 2019 00:32:35 -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=UumPiBjFTuL4dc3jLD4Cp7hwqG00noau7fcysxyeln0=; b=z/X62ZllUYMeC6RxHmhMUL6UUeX9Q7o/xCv5QjkvYGPdcY7aUK6AddgjQ7s+ury1L+ fcUr9DCbLSI03yMN0RnophG8ct/zDklyffj/K2DmhV3Gs1kBLK8HyUHbCuiCzFVQBCmm A7oZABkahT0/5oC/JU6w5AkEIq7V55ic33p08X+i0IBZrg9DRueMvFlEOmaDD4F+MzUg LYKIiDffup0Uglu4+Qa8CICiOvvo+mz0RwFqEapUZDQPKYPhrL71zsWoRWzwGsiqp9ah TcAaNLSzPznbRlWdyyJR/zDs0IyfmO1q4uTZ6tERanWslH8NmK98pprpt7ZOahIwZFzC IFAA== 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=UumPiBjFTuL4dc3jLD4Cp7hwqG00noau7fcysxyeln0=; b=LyrMzb5WD0J63QYiCaeN4EzRRp0oWP+fog/oFmHgl7Ec1z+SW5kOONeIZ7w7+Eh5D7 oF68tD+VyLSr6ZdBqfEe1zZJ/CCOb0DeW2A3vMZ2D97SnAFfWV60iLWJOWrhjvtLZ8gn lAfIdTVroPdOC4vmBeftiluqNsvqBA8NHZyXE/Otc8JaPKMsrXgzkFBtYvZ8s42lJ71n jBOZdKdnKS1LrFwlWy1z5tekDXqJM/kZHnza/uQC24xEQ1RumuE3or/8zljsLIMYJT5M lBqlnN1Q/QJzyit0J5WnMhVu++zDDpa8uG5B+QOcDXF+oeJxZSfmlDds6+lDokbKlD+X XZlA== X-Gm-Message-State: APjAAAWE2QYggwiyWZj/o3PVEk8iYqx+AOyBaSacfa/rwxtn6I2S4GWK ecTOhkgxwGFBzCZf4hisVko+hLVeDCk= X-Received: by 2002:ac2:42ca:: with SMTP id n10mr34724988lfl.121.1561361554011; Mon, 24 Jun 2019 00:32:34 -0700 (PDT) Received: from mlowasrzechonek2133.silvair.lan ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id k4sm1609873ljg.59.2019.06.24.00.32.32 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 24 Jun 2019 00:32:33 -0700 (PDT) From: =?UTF-8?q?Micha=C5=82=20Lowas-Rzechonek?= To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v3 0/2] mesh: Move HCI handling to mesh-io-generic Date: Mon, 24 Jun 2019 09:32:27 +0200 Message-Id: <20190624073229.8652-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 addresses Brian's comments. Thanks for the review! First patch has a few style/convention corrections. Second patch now introduces --io option, but leaves --index working as it used to. MichaƂ Lowas-Rzechonek (2): mesh: Move HCI handling to mesh-io-generic mesh: Added --io option Makefile.mesh | 1 + mesh/main.c | 96 +++++++++++++++---- mesh/mesh-io-api.h | 3 +- mesh/mesh-io-generic.c | 63 ++++++++----- mesh/mesh-io.c | 15 ++- mesh/mesh-io.h | 2 +- mesh/mesh-mgmt.c | 204 +++++++++++++++++++++++++++++++++++++++++ mesh/mesh-mgmt.h | 23 +++++ mesh/mesh.c | 189 +++----------------------------------- mesh/mesh.h | 4 +- 10 files changed, 370 insertions(+), 230 deletions(-) create mode 100644 mesh/mesh-mgmt.c create mode 100644 mesh/mesh-mgmt.h -- 2.19.1