Split BoltStatus enum
Currently the enum has the following member.
BOLT_STATUS_UNKNOWN = -1,
BOLT_STATUS_DISCONNECTED = 0,
BOLT_STATUS_CONNECTED,
BOLT_STATUS_AUTHORIZING,
BOLT_STATUS_AUTH_ERROR,
BOLT_STATUS_AUTHORIZED,
BOLT_STATUS_AUTHORIZED_SECURE,
BOLT_STATUS_AUTHORIZED_NEWKEY,
BOLT_STATUS_AUTHORIZED_DPONLY
It will gain BOLT_STATUS_CONNECTING
via issue #80
The idea is to split the enum to not have all the AUTHORIZED_XXXX
fields in there. A new D-Bus property AuthState
(?) of the flags could communicate the specific authorization state:
-
BOLT_STATUS_AUTHORIZED_SECURE
→secure
-
BOLT_STATUS_AUTHORIZED_NEWKEY
→ covered byBOLT_KEY_NEW
-
BOLT_STATUS_AUTHORIZED_DPONLY
→~pcie
(orpci
orpcie-tunnel
)
We would also handle new boot
attribute from issue #76 (closed) as boot
.
Additionally we could indicate that the devices does not support key authorization, as per issue #63, via a nokey
flag.