Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3440102ybi; Mon, 29 Jul 2019 06:37:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgaSiHZWfIZHjjkhlZoskpkWGH4SQiyeRVDp13MBLiB7ruHk1ld2HwwYmKdc5bQdpqfhPi X-Received: by 2002:a17:902:aa41:: with SMTP id c1mr109465283plr.201.1564407462231; Mon, 29 Jul 2019 06:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564407462; cv=none; d=google.com; s=arc-20160816; b=tqOq0Ap5tq61Fw3dZ1Ov1cCSjvYFfbWY3jiRoM/O89rs0foMDIvJewGdU54fDVuNVS Ut9YcFD/V5k3RrkFVgpw+4cVeZFFFLNL5aH28uQC5aSjZxHOQpLKXtwqwCi9yCXHTqfT 7ayC26hqc6HHZDgdWQMmol9FYsrivYPt8Bupgl3Jj+5c2fJ9gJkiR5WB6v99cZchw0mx WTGjY/u1lvfhRTpG6Q6NH4QiyCBB0iWttcO6JCLpAWpLhoXyNHPTgo6W8TCDAANXvwEj q+hrGQfLXe/6j4AJEeVZxa3Pmy3HUYCts5b+9Aa0DueL13F/JpIvQTK5LgFoAIbKaTP1 t6YA== 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:to:subject :message-id:date:from:mime-version:dkim-signature; bh=cigPOQhQ7kZH+fseW7co8cRSd1ulkJjF4lGLxjJWGdc=; b=x/bc0qpkerPVzLp3gihmiG1WIaLK4xxLZNF/5STkBxQvtn6nVBc2eM/oFlaYBKAUwe 1xQi1+idsidTWEJtwrJ21cv8ty2Su+Trnzvj70JWI8mMK9eZneD5fmDIYs3kUKTDRbRa uCG6XdzRh027c+vtQNJLcq+MfQN0JW2IkjE04BSAY7ECMHQrUtBKLbwU3ftE4QZFwcbN fdTQgjfQEQzf8UJtyArEa9g6hiqZ/Cw0vEsgiB9+wnQPg/1er7J8HUACJgXwoV+4hrAk r7YD4nVLrx+afkeVpJAPXwXSdEQST56j0sL8QNqOk1qugmNs6I7D4VKwCvlJh4mKAH1+ 2OHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=gi+3UtCC; 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 f59si24961120plb.107.2019.07.29.06.37.12; Mon, 29 Jul 2019 06:37:42 -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=gi+3UtCC; 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 S1726709AbfG2MLj (ORCPT + 99 others); Mon, 29 Jul 2019 08:11:39 -0400 Received: from mail-lj1-f169.google.com ([209.85.208.169]:45408 "EHLO mail-lj1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbfG2MLi (ORCPT ); Mon, 29 Jul 2019 08:11:38 -0400 Received: by mail-lj1-f169.google.com with SMTP id m23so58280759lje.12 for ; Mon, 29 Jul 2019 05:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=cigPOQhQ7kZH+fseW7co8cRSd1ulkJjF4lGLxjJWGdc=; b=gi+3UtCCZoFsDhixwH3tFxLC/AzI1Og/bDXIjSQilRK+tTyAuld8RnSUQC7xmfHpJI hkvDwlqUSLHHYFPfZyI4CLg5+/8eFxkIU3urPgfL4LH/UNXDLloy54nvRIpHc914d38L pgOqcBbnuwt6q/AOokhI8G0iXDmroKuu9qFN6nJD2vdQOu/2yGlXRZLkPjCdvdvA0pmX lx/2+H0cN8Qt6Ds+VmYuOqGfGSFEpQXh53ecgAjiFcgL/Km/tU2LjxUFna+0eULIMrkH mAWsFFGEsmlKw5avgiQN8aoe5QiiaWn6if4h+isCiRI5RwgBGOECpsN/DejetUP0VnCI IeSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=cigPOQhQ7kZH+fseW7co8cRSd1ulkJjF4lGLxjJWGdc=; b=QD1nycoeVNMiuybM0zaM5gkTP6TNGi89CETXGLGl696B+HGKg7eYW/HDNkhiywOijV DcWqZy8nHuTBBZB2emqTyFqwBlRMzQLyORpsDfujvmLWEJHGsmUgNoVrfQqoITDOzdD1 E3Fbzv/p+6Eu1KRK/QHkdaw39gWRlQ5NT4hBGJVKYwn/h1XF+zu0EYZhM9QvsfwwyImy bBKVDxmmDZUzdZY09YLBF9zp1h14Go/NPVyc+soJzB1/sWWN85+CvYXXV+uILEPj50af SChm741urkLBYwWKqREaogItYEAH1BupYLdynK1FBgD27iyq+e4b/6V4cWnxbKz5G07Q mdnQ== X-Gm-Message-State: APjAAAWcVWuzbvfg8JA1k43bUe2ct7qjfuAaA7drBEW4ro4pbxkX7Wjr JOTcnhRiClbQ4W0/FaGgsvjtRW7RiVjYuA4VSXArA7ktxA4= X-Received: by 2002:a2e:b167:: with SMTP id a7mr59129511ljm.26.1564402295882; Mon, 29 Jul 2019 05:11:35 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?UmFmYcWCIEdhamRh?= Date: Mon, 29 Jul 2019 14:11:25 +0200 Message-ID: Subject: Mesh daemon to watch InterfacesRemoved signals To: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi all, At the moment after connecting an app, mesh daemon only watches for that app disconnecting from D-Bus with: node->disc_watch =3D l_dbus_add_disconnect_watch(bus, node->owner, app_disc_cb, node, NULL); in node.c::get_managed_objects_cb I can unregister all of the app interfaces (leaving it non functional but still connected to D-Bus) and mesh daemon will not be aware of that, still trying to communicate with it. This is especially problematic if app stops functioning correctly, but daemon continues to call its methods i.e. when a message is received. Maybe it would be beneficial for mesh daemon to listen to InterfacesRemoved signals to determine when apps/nodes disconnect: signal time=3D1564398245.483028 sender=3D:1.6219 -> destination=3D(null destination) serial=3D27 path=3D/com/silvair/application; interface=3Dorg.freedesktop.DBus.ObjectManager; member=3DInterfacesRemoved object path "/com/silvair/application" array [ string "org.mesh daemon.mesh.Application1" string "org.mesh daemon.mesh.ProvisionAgent1" ] signal time=3D1564398245.483133 sender=3D:1.6219 -> destination=3D(null destination) serial=3D28 path=3D/com/silvair/application/element0; interface=3Dorg.freedesktop.DBus.ObjectManager; member=3DInterfacesRemoved object path "/com/silvair/application/element0" array [ string "org.mesh daemon.mesh.Element1" ] This would give applications ability to, for example, have a multiple nodes registered and remove/change some of them without whole app restarting. Best Regards --=20 Rafa=C5=82 Gajda Silvair Sp. z o.o. Jasnog=C3=B3rska 44 31-358 Krakow POLAND www.silvair.com NOTICE TO RECIPIENT We inform you that Silvair sp. z o.o. with its registered office in Cracow (31-358), at Jasnog=C3=B3rska Street 44 is the controller of your personal data. You can find more information about processing personal data and your rights here. Informujemy, =C5=BCe administratorem Twoich danych jest Silvair sp. z o.o. z siedzib=C4=85 w Krakowie (31-358), ul. Jasnog=C3=B3rska 44. Wi=C4=99cej = informacji na temat przetwarzania danych osobowych i przys=C5=82uguj=C4=85cych Ci praw znajdziesz tu This e-mail message and any documents accompanying it contain information that belongs to SILVAIR. This e-mail is meant for only the intended recipient of the transmission and may be a communication privileged by law, confidential and/or otherwise protected from disclosure. If you received this e-mail in error and you are not the intended recipient, any review, use, dissemination, distribution, or copying of this e-mail or attachment is strictly prohibited. Please notify us immediately of the error by return e-mail and please delete this message from your system.