diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-05-31 07:49:00 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-05-31 07:49:00 -0400 |
commit | 4e4ac8884e5469d3843f4a775559f22ff7c8d292 (patch) | |
tree | c57964f522e6ff392c81894ffefc9c6f956f8cae /ais_json.c | |
parent | 0e98bf00b5a63798e30026d9198892b7c24c4c71 (diff) | |
download | gpsd-4e4ac8884e5469d3843f4a775559f22ff7c8d292.tar.gz |
In AIS, partial support for VTS-Generated/Synthetic Targets.
JSON parsing of string IDs won't work yet; code generator needs
some extension.
Diffstat (limited to 'ais_json.c')
-rw-r--r-- | ais_json.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -243,6 +243,10 @@ int json_ais_read(const char *buf, status = json_read_object(buf, json_ais8_fid15, endptr); imo = true; } + else if (strstr(buf, "\"fid\":17,") != NULL) { + status = json_read_object(buf, json_ais8_fid17, endptr); + imo = true; + } else if (strstr(buf, "\"fid\":19,") != NULL) { status = json_read_object(buf, json_ais8_fid19, endptr); imo = true; |