1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

refactor: naming of jansson objects

This commit is contained in:
Steffen Vogel 2017-11-17 17:54:36 +01:00
parent 976d213d04
commit e6a754170b

View file

@ -28,7 +28,7 @@
#include "nodes/influxdb.h"
#include "memory.h"
int influxdb_parse(struct node *n, json_t *cfg)
int influxdb_parse(struct node *n, json_t *json)
{
struct influxdb *i = (struct influxdb *) n->_vd;
@ -39,7 +39,7 @@ int influxdb_parse(struct node *n, json_t *cfg)
char *tmp, *host, *port;
const char *server, *key;
ret = json_unpack_ex(cfg, &err, 0, "{ s: s, s: s, s?: o }",
ret = json_unpack_ex(json, &err, 0, "{ s: s, s: s, s?: o }",
"server", &server,
"key", &key,
"fields", &json_fields