Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1749491ybl; Thu, 9 Jan 2020 00:40:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwF3OsvPEQfR1ZXC6/3P7e2CvFvL+ldk22ILdZW1C+TapzPFmgphlntiCLDw37+8FgF2sj+ X-Received: by 2002:aca:5588:: with SMTP id j130mr2199151oib.122.1578559231226; Thu, 09 Jan 2020 00:40:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578559231; cv=none; d=google.com; s=arc-20160816; b=xLXHCwFS3bwXOJPSdwAG45zGwCu9kvQJ4VhR6TdAZEcB0GyEdlKznjU7vc0rxiGe9O sFkGMuT/8a/0W0C0iRA/wuUYfXJgdFD+QmPN+X2W0zUrxfa4Amk4uTZKKWp8sTkQ1b7x B5xKJ6rz5+koULFcIjB+VY6CFK6VAzNGr5NZfC2oXo14GpG+ukCeoekBK5A/P+oFOt+v 8f4UyXv5E9zsZc1mtripg2lzwKrbbjqoBjygN6sj/TaSCF/eoAnf/6TApyQ6iNwHf9bv 4HfN5CvTlPYShk8CfdeU/PlYdIjt7UcV7gbd1zOIACnh+FaM8RRPZPih7uopo0y1KkZg mr+A== 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=T8xlvjJZgwyPXo87q2jQsB1sAyOo6QsWZZbOVqbWpZg=; b=NA0XhES/5rZ5xVIi7MbniLsF0dBnYVNMuKMRtgymXQcq6Wp2qHGGCreOmTSR/8AOBD rX6dfLPhdM2NHCaUBjbXomeSEB1gNemccfQMtJwKCSdReHzF03rlTR02ZKpIU7i2o9wk byS2zKOFXr5wgUsOvxlsACgNYcLE2jzStgbriP8Xwqywrc9GwA8a/vXFjO3pOxVDUihS BmBSsUp3VeRD4gA7PpZg/qxeC4Br+UrvLNUPg65N3NkaJy2hQgjT9OBQfNXv9eQ6pUd8 ZOF9iTUK7EFzmxoO4NNcd8ISHEMQR1TzzGHRqgQEA2cYG++6A1AatHxL42aezvyv8dom unvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=W0TtAq36; 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 w4si3567935otp.30.2020.01.09.00.40.20; Thu, 09 Jan 2020 00:40:31 -0800 (PST) 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=W0TtAq36; 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 S1728459AbgAIIjC (ORCPT + 99 others); Thu, 9 Jan 2020 03:39:02 -0500 Received: from mail-lf1-f43.google.com ([209.85.167.43]:44611 "EHLO mail-lf1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728435AbgAIIjC (ORCPT ); Thu, 9 Jan 2020 03:39:02 -0500 Received: by mail-lf1-f43.google.com with SMTP id v201so4538643lfa.11 for ; Thu, 09 Jan 2020 00:39:01 -0800 (PST) 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=T8xlvjJZgwyPXo87q2jQsB1sAyOo6QsWZZbOVqbWpZg=; b=W0TtAq36nkdOq3KNGRFWfLi3xwUoLPrFRuo1u90Tf8e0jgduOoBVdaHQSImT+/iBW8 tzsw1Fq6DhcmMkyRCM9J7vR/mq3QVnyu0bnz7pcnJ7o3GTaeo3I3gvo2z7l9uUafiRmS K/95cusb9wHh/h2177s64QIW/ugfY3eyvvY5E+LQ7O2rNRl8i9/wVdS/dqZp4nW4Onta Jr0lR8ACGYgszCY+k/ixuKC/9B4UkTGyUwi1lx63yreyDig8GCUa5LeqzT5CBkmkEp7c LnHxqTVG0KxtaxsMuakzZD0yoOGiFlLSfOGcIY/dACq+STc5JxK01EhdfhsQYHl7ZYFi Fe3A== 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=T8xlvjJZgwyPXo87q2jQsB1sAyOo6QsWZZbOVqbWpZg=; b=r5zI7wI6Q875hT+BeOKkfyrhb2moTHK+f3wtqIgan5zjTFoRQ2tWzv3qMbmpBiuPBr g95RDqdvAVMBfxi6bOo3FR54N8hhZ/RYsBQHvQQr+dqux6iQiDWRC4Oxy26ec9d1iOs7 r3BTkm0onB02gmCAyvJ5s9gUKpU2FDkpQKIHi9mvyfCI1s9n3jf48M2WeNYU+i3Xm/sW jEYsjuwrBxmv9t5DrCtgOSZs0KCcSWafkwVZK1mVPBEdkfMYleHcFbLNc1hcrTgASCuK bwDtv/t8Hsn5ENRueCow/RFNH1ADozhwA//s965Uiraxw9cRYSvo00b5vQckB5PyLzLj Uefw== X-Gm-Message-State: APjAAAXemyGs+moRnnikCcn1v3PkjKavSiaZ4PSzh2pxXaxqe+03ZSTU HTnPz5CSMAG/H+/Xk44Pj9tgnGO3p50= X-Received: by 2002:ac2:5088:: with SMTP id f8mr5531884lfm.163.1578559140140; Thu, 09 Jan 2020 00:39:00 -0800 (PST) Received: from mlowasrzechonek2133.silvair.lan ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id b22sm2930456lji.99.2020.01.09.00.38.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 00:38:59 -0800 (PST) From: =?UTF-8?q?Micha=C5=82=20Lowas-Rzechonek?= To: linux-bluetooth@vger.kernel.org Subject: [RFC BlueZ 0/2] Fix types and names of beacon/import flags. Date: Thu, 9 Jan 2020 09:38:53 +0100 Message-Id: <20200109083855.16000-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 patchset aims to make the API a bit more consistent. Side question: at the moment none of the node properties emit PropertiesChanged signal. I think this violates D-Bus spec, since all properties are assumed to emit these signals by default [1] [2]. Unfortunately, at the moment ELL does not support "EmitsChangedSignal" annotation, so I'd like to add this to ELL, annotate node properties with: - Features: const - Beacon: true - BeaconFlags: true - IvIndex: true - SecondsSinceLastHeard: false (for performance reasons) - Addresses: const And also emit PropertiesChanged where required. Thoughts? [1] https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-properties Each property (or the parent interface) must be annotated with the org.freedesktop.DBus.Property.EmitsChangedSignal annotation to convey this (usually the default value true is sufficient meaning that the annotation does not need to be used). See the section called “Introspection Data Format” for details on this annotation. [2] https://dbus.freedesktop.org/doc/dbus-specification.html#introspection-format org.freedesktop.DBus.Property.EmitsChangedSignal: true,invalidates,const,false If set to false, the org.freedesktop.DBus.Properties.PropertiesChanged signal, see the section called “org.freedesktop.DBus.Properties” is not guaranteed to be emitted if the property changes. If set to const the property never changes value during the lifetime of the object it belongs to, and hence the signal is never emitted for it. If set to invalidates the signal is emitted but the value is not included in the signal. If set to true the signal is emitted with the value included. The value for the annotation defaults to true if the enclosing interface element does not specify the annotation. Otherwise it defaults to the value specified in the enclosing interface element. This annotation is intended to be used by code generators to implement client-side caching of property values. For all properties for which the annotation is set to const, invalidates or true the client may unconditionally cache the values as the properties don't change or notifications are generated for them if they do. Michał Lowas-Rzechonek (2): mesh: Rename IVUpdate import flag to IvUpdate mesh: Change BeaconFlags property type to a dict doc/mesh-api.txt | 20 +++++++++++++++----- mesh/mesh.c | 2 +- mesh/node.c | 13 +++++++++++-- 3 files changed, 27 insertions(+), 8 deletions(-) -- 2.19.1