util: resource: Add JSON format support 37/273037/3 accepted/tizen/unified/20220401.033556 submit/tizen/20220401.020712
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 29 Mar 2022 02:41:54 +0000 (11:41 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 31 Mar 2022 03:02:27 +0000 (12:02 +0900)
commit92e445c6da8b6e97e24a18f1a2e817048e17c9fc
treed024bc846aa8ea2c48ccce939720a7a7e8fac2bc
parent9e34d4f3175666353518f786811a7d5ce40c756e
util: resource: Add JSON format support

To extend use of monitor resource, now all attributes in resource can
be retrieved as JSON type format at once with new api below:

 - tmonitor_get_value_json: get a attribute of resource as json format
 - tmonitor_get_resource_json: get all attributes of resource as json
                               format

Change-Id: I14b1f5e2474d101ff7149a3377b2ebc1890223c8
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
include/util/request.h
include/util/resource.h
lib/tmonitor/tmonitor.c
lib/tmonitor/tmonitor.h
src/monitor/request-handler.c
src/util/resource.c