From 7a4d5797c68cc03a9a2d00d29e2f2ee839edaa24 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 18 Dec 2009 03:53:22 +0000 Subject: Introduce the "scaled" attribute to JSON dumps... ...so they are fully self-describing again. --- ais_json.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ais_json.c') diff --git a/ais_json.c b/ais_json.c index 53c6b1d9..80e25491 100644 --- a/ais_json.c +++ b/ais_json.c @@ -36,6 +36,8 @@ int json_ais_read(const char *buf, struct ais_t *ais, /*@null@*/const char **endptr) { + /* collected but not actually used yet */ + bool scaled; /*@-compdef@*//* splint is confused by storage declared in the .i file */ /*@-nullstate@*/ @@ -45,6 +47,8 @@ int json_ais_read(const char *buf, {"device", string, .addr.string = path, \ .len = pathlen}, \ {"repeat", uinteger, .addr.uinteger = &ais->repeat}, \ + {"scaled", boolean, .addr.boolean = &scaled, \ + .dflt.boolean = false}, \ {"mmsi", uinteger, .addr.uinteger = &ais->mmsi} int status; -- cgit v1.2.1