binding: data-persistence: Modified the response of verb_read 76/22476/6
authorGaykawadpk <Puja.Kumari@kpit.com>
Sat, 21 Sep 2019 12:07:08 +0000 (17:37 +0530)
committerGaykawadpk <Puja.Kumari@kpit.com>
Wed, 9 Oct 2019 05:21:49 +0000 (10:51 +0530)
commitfb31aa674d3e006b7a7327c068f048ab9cee1964
tree5e878ee4d8558fec6c580e5025501cda0c6bee0d
parent298b2fe4914c63bd7aec2fc6a979d152599e3c46
binding: data-persistence: Modified the response of verb_read

Added key and value both in response so that user can know which key the value corresponds to.
The current persistence implementation responds with only the value when queried. Since this is
async call and multiple keys can be queried at the same time, the key and value should be given
as response to any persistence query done. This will improve the readability of the Read verb
response for user application.

Also made the same changes for failed case of Read verb so that if read verb fails, user can know
for which key it failed.

Bug-AGL: SPEC-2828

Signed-off-by: Gaykawadpk <Puja.Kumari@kpit.com>
Change-Id: I565cd78ca2c1e7c5d5f63ab49479b495044772ce
src/persistence-binding.c