Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2480746ybi; Mon, 1 Jul 2019 12:44:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZCvcjI92gR0rqqWXVXsss5WqDH0WFw09BkFMvVlt8/0UuLz7ho5Ru+/6nq12X7tY7UTA/ X-Received: by 2002:a17:90a:1b4a:: with SMTP id q68mr1056776pjq.61.1562010291143; Mon, 01 Jul 2019 12:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562010291; cv=none; d=google.com; s=arc-20160816; b=o9nrC4id21VcK9tpgdYQG7Y86WqzuD2n3qWWfbzizFEhXNYPhWDM1HyDYh5JfutE/e 16xAC8BUDXOGqtrfGlh8OQy83T+JzVBm9HewvfoLbQXPjXZLlaS/YlgBRm+3V76LI047 0fQMx0D6DufloXhQOGef2dmFX89qwm/tD/ftsarb0pm+zVCgdtV19YfRTi5086qG9KSr q+TTHk3lq7QLzVqIMIyOVZJZEJPaugTTvuu+BrkmyyDbE6hwp2OaQqgGOuBsA+AbzKHf HxRx3Ly25P2aDjYfQ9IW3O1XGPHHAeFKephWxGp+eem/Jpb6jiacqv49qR1HvlWqOi91 hCEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=goD61i1hGt1+V36rsRp64vmZSpFErOvuYbCSsLUvDZ0=; b=ojuHFAFZgARwBSnFI/P1hulihqwxwJn74j334Ez6pHj3aq3LC/oAHw6Xm/TsjnM2pI OXdTW6sunvbWLiEsQeO2e8Gs0tnYQ19trNM1DQXj5qGDC8dTJYWcp3Xqia/PgfAuJhKn qij2QeFoom3+qXgkoqmJMbQ5w5sbsFH9z6Cxlw3awkLHNLdXnVspNCf7Gp57bMSClJUY qwRXBcC71pa/6FQnmmB2iF84b/+0zsTZ4MVgjYaIV3cf9hbrZA9ef/zZVB+qdGdo1SdM OPqGRq+TpKk8apdNKXTkDlPLHoom2lyY1oOEMR4ngbNyxalYm7KEIxvY791yqzuJfxQD OUnA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j25si11469804pfr.11.2019.07.01.12.44.36; Mon, 01 Jul 2019 12:44:51 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726605AbfGATo3 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 1 Jul 2019 15:44:29 -0400 Received: from mga01.intel.com ([192.55.52.88]:7357 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726509AbfGATo3 (ORCPT ); Mon, 1 Jul 2019 15:44:29 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Jul 2019 12:44:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,440,1557212400"; d="scan'208";a="186589526" Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by fmsmga004.fm.intel.com with ESMTP; 01 Jul 2019 12:44:14 -0700 Received: from orsmsx152.amr.corp.intel.com (10.22.226.39) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 1 Jul 2019 12:44:15 -0700 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.135]) by ORSMSX152.amr.corp.intel.com ([169.254.8.180]) with mapi id 14.03.0439.000; Mon, 1 Jul 2019 12:44:15 -0700 From: "Gix, Brian" To: Michal Lowas-Rzechonek , "linux-bluetooth@vger.kernel.org" CC: "Stotland, Inga" Subject: RE: [PATCH BlueZ 2/2] mesh: Register D-Bus management interface Thread-Topic: [PATCH BlueZ 2/2] mesh: Register D-Bus management interface Thread-Index: AQHVLYteDVrKNOM1e0mwB1SM8/Jqe6a2L5hw Date: Mon, 1 Jul 2019 19:44:14 +0000 Message-ID: References: <20190628082734.18809-1-michal.lowas-rzechonek@silvair.com> <20190628082734.18809-2-michal.lowas-rzechonek@silvair.com> In-Reply-To: <20190628082734.18809-2-michal.lowas-rzechonek@silvair.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjEzMmQ0MTktZDczMy00ZWIxLWI2NWEtYTNlOTFiMjJlYjU3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiQjlGZmN5K2kyVXFVRmpKMWxLdlwvV0JlaTE0Z01adVlXK0tDNGdhOFkrVW9iNVZVd1E2c0JYd2hFMDF3dENtQmEifQ== x-originating-ip: [10.22.254.139] Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Applied, Thanks. > -----Original Message----- > From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth- > owner@vger.kernel.org] On Behalf Of Michal Lowas-Rzechonek > Sent: Friday, June 28, 2019 1:28 AM > To: linux-bluetooth@vger.kernel.org > Cc: Stotland, Inga > Subject: [PATCH BlueZ 2/2] mesh: Register D-Bus management interface > > When application Attach()es itself, start exposing both Node1 and > Management1 D-Bus interfaces. > --- > mesh/node.c | 17 +++++++++++++++-- > 1 file changed, 15 insertions(+), 2 deletions(-) > > diff --git a/mesh/node.c b/mesh/node.c > index 45383b7d5..a2ac747a1 100644 > --- a/mesh/node.c > +++ b/mesh/node.c > @@ -259,9 +259,14 @@ static void free_node_resources(void *data) > if (node->disc_watch) > l_dbus_remove_watch(dbus_get_bus(), node->disc_watch); > > - if (node->path) > + if (node->path) { > l_dbus_object_remove_interface(dbus_get_bus(), node->path, > > MESH_NODE_INTERFACE); > + > + l_dbus_object_remove_interface(dbus_get_bus(), node->path, > + > MESH_MANAGEMENT_INTERFACE); > + } > + > l_free(node->path); > > l_free(node); > @@ -434,6 +439,7 @@ void node_cleanup_all(void) { > l_queue_destroy(nodes, cleanup_node); > l_dbus_unregister_interface(dbus_get_bus(), > MESH_NODE_INTERFACE); > + l_dbus_unregister_interface(dbus_get_bus(), > +MESH_MANAGEMENT_INTERFACE); > } > > bool node_is_provisioned(struct mesh_node *node) @@ -1024,7 +1030,11 > @@ static bool register_node_object(struct mesh_node *node) > "%s", uuid); > > if (!l_dbus_object_add_interface(dbus_get_bus(), node->path, > - MESH_NODE_INTERFACE, node)) > + MESH_NODE_INTERFACE, > node)) > + return false; > + > + if (!l_dbus_object_add_interface(dbus_get_bus(), node->path, > + MESH_MANAGEMENT_INTERFACE, > node)) > return false; > > return true; > @@ -1046,6 +1056,9 @@ static void app_disc_cb(struct l_dbus *bus, void > *user_data) > if (node->path) { > l_dbus_object_remove_interface(dbus_get_bus(), node->path, > > MESH_NODE_INTERFACE); > + > + l_dbus_object_remove_interface(dbus_get_bus(), node->path, > + > MESH_MANAGEMENT_INTERFACE); > l_free(node->app_path); > node->app_path = NULL; > } > -- > 2.19.1