From: Denis Kenzior <denkenz@gmail.com>
To: Jesse Lentz <jesse@twosheds.org>,
James Prestwood <prestwoj@gmail.com>,
iwd@lists.linux.dev
Subject: Re: [PATCH 2/2] doc: Add State and Role properties to DPP API
Date: Thu, 23 Jun 2022 13:00:47 -0500 [thread overview]
Message-ID: <4f8abe30-e9c2-0a35-a913-d67c3242ec3a@gmail.com> (raw)
In-Reply-To: <CKXNNPV68RR1.3ROOO4K1DSKL0@laptop>
Hi Jesse,
On 6/23/22 11:30, Jesse Lentz wrote:
> Hi James,
>
> Thanks for your feedback.
>
>>> +Properties string State [readonly, optional]
>>> +
>>> + Reflects the DPP state. Possible values are
>>> "presence",
>>> + "authenticating", and "configuring".
>>
>> I think a "stopped" state would also be needed.
>
> As a user of the API, I can infer that DPP is inactive if "State" is
> undefined. A non-optional State property with an explicit "inactive"
> value should provide equivalent information; would you prefer the latter
> approach?
Inferring the state is fine if you can do this reliably. One problem with
optional properties is that once they transition from 'defined' -> 'undefined'
there is no PropertiesChanged signal that is sent (or rather you have to look
into the invalidated_properties array of that signal).
We have been designing our APIs with the assumption that many bindings wouldn't
be using this invalidated_properties reliably and added another point of reference.
For example, Station.ConnectedNetwork is invalidated when Station.State goes
into the 'disconnected' state and thus not explicitly 'changed'. But the DBus
client can infer that Station.ConnectedNetwork is 'undefined' at that point.
But maybe bindings have improved over the years and we should just rely on
invalidated_properties being taken into account properly? If so, that would be
a good argument to make 'State' optional.
Regards,
-Denis
next prev parent reply other threads:[~2022-06-23 18:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-22 19:41 [PATCH 1/2] dpp: Add State and Role properties to dbus API Jesse Lentz
2022-06-22 19:41 ` [PATCH 2/2] doc: Add State and Role properties to DPP API Jesse Lentz
2022-06-22 20:35 ` James Prestwood
2022-06-23 16:30 ` Jesse Lentz
2022-06-23 16:47 ` James Prestwood
2022-06-23 17:24 ` Jesse Lentz
2022-06-23 18:00 ` Denis Kenzior [this message]
2022-06-23 19:07 ` Jesse Lentz
2022-06-23 19:58 ` Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4f8abe30-e9c2-0a35-a913-d67c3242ec3a@gmail.com \
--to=denkenz@gmail.com \
--cc=iwd@lists.linux.dev \
--cc=jesse@twosheds.org \
--cc=prestwoj@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox