Code

store: Added a generic JSON formatter.
authorSebastian Harl <sh@tokkee.org>
Fri, 31 Oct 2014 17:48:34 +0000 (18:48 +0100)
committerSebastian Harl <sh@tokkee.org>
Fri, 31 Oct 2014 17:48:34 +0000 (18:48 +0100)
commit7e192f00497c9837856530d2ca5559ec86715502
tree9aed4cdd9d52138ffa1bcec1ab407c621c3d395c
parent794d7a5a42401a5bf0645b36162c3d05fbd81a99
store: Added a generic JSON formatter.

It works by consuming single objects of any type (host, service, metric,
attribute) at a time and appending their JSON serialization to a string
buffer. The current position in the object tree is recorded in an internal
state.

A helper function is provided on top of the base formatter which allows to
handle an full object at a time.
src/Makefile.am
src/core/store-private.h
src/core/store_json.c [new file with mode: 0644]
src/include/core/store.h