History log of /external/libweave/include/weave/device.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ce850b557cd406e4dc546557acbf756484aac198 04-Jan-2016 Alex Vakulenko <avakulenko@google.com> Add the ability to remove a component from component tree

This functionality will be neaded on Brillo side to remove components
added by vendor daemons when those daemons exit (normally or abnormally).
This will allow those daemons to re-add the same component when they get
restarted.

Change-Id: Ida350cfa38d4f1265d1e86fccca893cdf7f5030c
Reviewed-on: https://weave-review.googlesource.com/2087
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/include/weave/device.h
34668e731bb194b443bc0e6029d6d3583f08de28 15-Dec-2015 Vitaly Buka <vitalybuka@google.com> Reformat

Change-Id: Ia98499f9ada220151b24ecb8b60b02524d700bc4
Reviewed-on: https://weave-review.googlesource.com/1967
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/include/weave/device.h
ec9d8481ae5deaaf7901f944b06682e77b978881 10-Dec-2015 Alex Vakulenko <avakulenko@google.com> Mark old APIs officially deprecated

Marked the old state/commanddef APIs deprecated. Had to fix a couple
of issues on libweave side where old APIs were still called.

Also added AddTraitDefsChangedCallback() so weaved can listen to trait
updates and publish them onto its own RPC.

BUG: 25917706
Change-Id: I1e50e25c5251c12162c9b63e066f54c8a8f63c50
Reviewed-on: https://weave-review.googlesource.com/1877
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/include/weave/device.h
e79fa91bbc065a0659e54462add16fa61763dc8d 05-Dec-2015 Alex Vakulenko <avakulenko@google.com> Add new component-based APIs to Device interface

This change just adds ComponentManager to DeviceManager and adds
new APIs that forward the calls to the component manager. The old
APIs are still intact and work with the old StateManager and Command
Manager.

BUG: 25916427, 25917240, 25917419, 25917523, 25917601
BUG: 25917650, 25917243, 25917525, 25917247
Change-Id: I88ce4bc6c447335e8b48ad5b1555eaa6331e447f
Reviewed-on: https://weave-review.googlesource.com/1782
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/include/weave/device.h
88e9d12481a165568243e5d3660421f54b87192f 05-Dec-2015 Alex Vakulenko <avakulenko@google.com> Move deprecated APIs on Device object to the end of the interface

Move the old (obsolete) methods to the end of Device interface and
mark them with LIBWEAVE_DEPRECATED attribute. This attribute is
not fully enabled yet because these APIs are still used throughout
libweave and samples, so the warning will break the build.

However, once all this code is swept and all call sites are switched
to new component model, uncommend the definition of LIBWEAVE_DEPRECATED.

BUG: 25917706
Change-Id: I247bf74c9c94b22777e25d7021ff2c24e273c5e7
Reviewed-on: https://weave-review.googlesource.com/1781
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/include/weave/device.h
3bfb13d1a7a1d1677b3b3af9264f7cbecb6b71bd 24-Nov-2015 Vitaly Buka <vitalybuka@google.com> Fix GCC 4.7 errors

GCC 4.7.2 fail overriding constructors defined with virtual and default.
Debian build also fails linking without -lrt.
INT64_C is not defined on Debian with 4.7.2. "ll" should be enough.

Change-Id: Ia779f094ed64fc3b1941429485e81520d017c2f5
Reviewed-on: https://weave-review.googlesource.com/1671
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/include/weave/device.h
c4305600835b91630f9ca4b10ad9070ea55a726c 25-Nov-2015 Vitaly Buka <vitalybuka@google.com> Replace Get* methods returning unique_ptr with reference alternative

Existing code created temporarily objects and returned them to the
client. It was not efficient and error-prone as client code could
retrieve pointers to internal objects without keeping unique_ptr alive.

Change-Id: I9e17c8d9f66dfc9f52ce9ffc9a31992b16b00461
Reviewed-on: https://weave-review.googlesource.com/1672
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/include/weave/device.h
672634b8b0ed31891fb48e02dce75b6aead0be27 20-Nov-2015 Vitaly Buka <vitalybuka@google.com> Persist kInvalidCredentials state

External code may want to do some additional processing when device
was unregistered from the cloud side, e.g. factory reset of the device.

Existing code switches from kInvalidCredentials to kUnregistered after
reboot. This makes processing kInvalidCredentials unreliable.

Persistence of kInvalidCredentials implemented as special case when
cloud_id is not empty but credentials are missing.

BUG:25342842

Change-Id: I80d4ce8157c70e132a55fd752a9006064cf70b57
Reviewed-on: https://weave-review.googlesource.com/1580
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/include/weave/device.h
5a1f600e9d7d26c36b3e22ff0dc0ae9e3b2425fc 02-Nov-2015 Paul Westbrook <pwestbro@google.com> Remove the unneeded libweave directory

Change-Id: I30fd8c5626cf83da6415ffa14a2019ef43be9916
Reviewed-on: https://weave-review.googlesource.com/1450
Reviewed-by: Paul Westbrook <pwestbro@google.com>
/external/libweave/include/weave/device.h