summaryrefslogtreecommitdiffstats
path: root/src/utils
AgeCommit message (Collapse)AuthorFilesLines
2019-05-24Better memory management in chained listJohann CAHIER2-11/+28
key is now managed internally, using a copy. add_elt() / add_key() now provide a 'suffix' parameter. If suffix is given, it is appended to the key. If NULL, or empty string ("") is given, nothing is appended. NOTE : value is still owned by json object. Bug-AGL: SPEC-2416 Change-Id: I624a2dd211801c2d24b2c6739f2c7536a047ea32 Signed-off-by: Johann CAHIER <johann.cahier@iot.bzh>
2018-07-10Fixed bug when searching tail of listSebastien Douheret1-67/+62
When searching tail of list, you cannot use directly input parameter (*l) , you should use a local variable instead (here new_elt). Change-Id: I13fc042f85580342ecf33cca2067a37ee55f4799 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Handle query result and prepare to forward by APIRomain Forlot2-0/+15
First draft to be able to read at regular interval the TSDB InfluxDB. This prepare a JSON object formated to be handled as an input argument from a regular call to the API verb 'write' Then it is only needed to call the remote verb to forward all the results Change-Id: I80076dd9cf00ba43075d37dd4d15180e63e37289 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Improve writer/reader processingRomain Forlot2-14/+14
- Handle indefinite number and kind of tags and fields for a metric - Include only once header files - Cleaning and ordering code Change-Id: I14a4f0e6e1626971bff73ce7d9ac067bda69cfc4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Add simple chained management libRomain Forlot2-0/+134
Change-Id: I9aa2e5c4da375a124a6be43d5738414b80e0567e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>