diff options
Diffstat (limited to 'ais_json.c')
-rw-r--r-- | ais_json.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |