aboutsummaryrefslogtreecommitdiff
path: root/src/config.cc
AgeCommit message (Collapse)Author
2016-04-21libweave: Split "base" trait into "device" and "privet".Alex Vakulenko
The original "base" trait has been split into two and those traits have slightly different definitions (e.g. now device name, description and location are part of "device" trait's state, instead of the global device resource). Updated tests to reflect the new traits. BUG: None Change-Id: I9a1a1bfc3c01d67dd0ac519106c5d20c25a62f38 Reviewed-on: https://weave-review.googlesource.com/3146 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-03-29libweave: Fix compile errors on Chrome OSAlex Vakulenko
Need to include <algorithm> explicitly to use std::find and std::replace. On Android these included indirectly by some other library headers, but on Chrome OS they are not and this breaks the build. Change-Id: I590e00aaaa3796a6614147bd5acb404c2fe078d6 Reviewed-on: https://weave-review.googlesource.com/3063 Reviewed-by: Robert Ginda <rginda@google.com>
2016-02-10Replace URL with Url in identifiersVitaly Buka
Change-Id: I7189f2d49a0b5a3f800f78c4dd53ff4bc1e201b9 Reviewed-on: https://weave-review.googlesource.com/2590 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-10Enable support of endpoints override.Vitaly Buka
Endpoints can be overridden only during device registration. New endpoints will be stored in device config only on successful registration. Device will keep endpoints as pending during registration process. BUG:23907593 BUG:26525138 Change-Id: I2a2ddcbad19746d631a78b33f7305da1c0bb07fb Reviewed-on: https://weave-review.googlesource.com/2203 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-05Add customizable settings option for xmpp_endpointVitaly Buka
BUG:26525138 Change-Id: I8b198c5d7b29fdc11940443710c64731b1025066 Reviewed-on: https://weave-review.googlesource.com/2487 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-01-30Merge: Add write callback into SaveSettings functionVitaly Buka
Saving critical settings needs confirmation. When command alters device config, it should be set "Done" only after settings are actually saved. BUG:25776798 Reviewed-on: https://weave-review.googlesource.com/2199 Reviewed-by: Alex Vakulenko <avakulenko@google.com> (cherry picked from commit 42e508f2559e019d2fcc8f88adfd184b7a6bc3a4) Change-Id: I693e3c17b3f2f707c8df7af29eefd48362980bce Reviewed-on: https://weave-review.googlesource.com/2421 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2016-01-30Merge: Add |name| into LoadSettings/SaveSettingsVitaly Buka
Libweave needs to store more than one config file. BUG:25776798 Reviewed-on: https://weave-review.googlesource.com/2198 Reviewed-by: Alex Vakulenko <avakulenko@google.com> (cherry picked from commit 7ecdf959f10b62f192be867c280a7885626d6b85) Change-Id: I00ce2ef4e7d272d1a7cfaf73d1802429d4f73831 Reviewed-on: https://weave-review.googlesource.com/2420 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2016-01-20Pull the new r369476 of base library from ChromiumAlex Vakulenko
The merge was done against r369476 which corresponds to git commit 0471d0e2e2ef4a544a63481a389e1df33ea7c00a of Jan 14, 2016 Change-Id: Ie6894cf65424cc5ad115110faccd51602b2d1234 Reviewed-on: https://weave-review.googlesource.com/2225 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2015-12-23Hide Config::Load methodVitaly Buka
Constructor is going to load data instead. This makes clear that ::Load is one time operations. Change-Id: Id7b2275544cc034d30737bea21b3d8cc68e4a8a9 Reviewed-on: https://weave-review.googlesource.com/2080 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2015-12-16ReformatVitaly Buka
Change-Id: Ia98499f9ada220151b24ecb8b60b02524d700bc4 Reviewed-on: https://weave-review.googlesource.com/1967 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2015-12-14Add local_auth_info_changed -> root_client_token_ownerVitaly Buka
We are going to store owner of Root Client Authentication Token. Information is needed to avoid claiming tokens by multiple clients or by client and cloud simultaneously. BUG=26156215 Change-Id: I4dae39f3e8b0cfe3667775a864d5c893710fc18e Reviewed-on: https://weave-review.googlesource.com/1921 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2015-12-08Add config flag to mark that local auth info was changedVitaly Buka
libWeave must upload changed local auth info to the server. BUG=25766813 Change-Id: I3d82e2dab363554b1ed7ad164edbe8fbe04a7b7a Reviewed-on: https://weave-review.googlesource.com/1801 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2015-12-03Extract privet::AuthManager from privet::SecurityManagerVitaly Buka
BUG:25934385 Change-Id: I45fb7c79053a6009330b4debae1065266d1ce972 Reviewed-on: https://weave-review.googlesource.com/1735 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2015-11-24Support GCC 4.7Vitaly Buka
Removed constructors inheritance. Removed emplace use. Change-Id: I45224e3232d39ff22f758c7e387be2c9aff5eae0 Reviewed-on: https://weave-review.googlesource.com/1606 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2015-11-17Replace https://www.googleapis.com/clouddevices/v1/ withVitaly Buka
https://www.googleapis.com/weave/v1. BUG:25627281 Change-Id: I88c00ac04c4431a1646cfdf6b16e27f72d0b878e Reviewed-on: https://weave-review.googlesource.com/1530 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2015-11-02Remove the unneeded libweave directoryPaul Westbrook
Change-Id: I30fd8c5626cf83da6415ffa14a2019ef43be9916 Reviewed-on: https://weave-review.googlesource.com/1450 Reviewed-by: Paul Westbrook <pwestbro@google.com>