summaryrefslogtreecommitdiffstats
path: root/binding/navigation-api.c
AgeCommit message (Collapse)AuthorFilesLines
2020-01-14Integrate navigation voice capability usehalibut_8.0.6halibut_8.0.5halibut/8.0.6halibut/8.0.58.0.68.0.5halibutScott Murray1-11/+125
Add code to pull in the voice capabilities binding, subscribe to the existing setDestination and cancelNavigation events, and use the data that comes from them to set/clear the destination waypoint. Bug-AGL: SPEC-3107 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Iaeb0283492cc89e8cff1a1558cab7554e32e3142
2019-12-06binding: navigation: deep copy json response for cachehalibut_8.0.4halibut/8.0.48.0.4Matt Ranostay1-12/+11
To avoid possible side effects from afb framework releasing a cached json_object just deep copy to target cached object. Bug-AGL: SPEC-2880 Change-Id: Ie953d4668cd4e9a33a91d727a378cd24e75f112e Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-12-05binding: navigation: move get_storage_from_value call within write lockMatt Ranostay1-1/+3
json_object returned from get_storage_from_value() needs to be protected within the write lock. This is to prevent reentrant calls to broadcast() from accessing it, and running json_object_put() Bug-AGL: SPEC-2880 Change-Id: I9fdf614728368c75e925e4c5a0f3ca19a7e517e1 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-12-02binding: navigation: add missing read lock around afb_event_push()Matt Ranostay1-0/+10
Add missing read lock around event pushing from value that isn't required to be cached. Bug-AGL: SPEC-2880 Change-Id: I7aae2ec9df722fdefcec2d35977251e008375d92 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-12-01binding: navigation: rewrite of navigation bindingScott Murray1-0/+245
To remove dependency on DBus the binding needed to be rewritten to output pure JSON output to subscribed consumers. Bug-AGL: SPEC-2880 Change-Id: Ie85dfccd42ca36119116a0fbfb16bf4e96efc184 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>