diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-19 13:48:23 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-19 13:48:23 +0000 |
commit | 93ee1a5bab45b4dc57da6ee55885214fd66b0739 (patch) | |
tree | 63556af2ead49fcc66c18ba638d5e4f54908de52 /libgps_json.c | |
parent | 7ef6c5e9373d1db5645bd9d69b101b9202e3fd8c (diff) | |
download | gpsd-93ee1a5bab45b4dc57da6ee55885214fd66b0739.tar.gz |
JSON parser can now unpack JSON lists into structure arrays.
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgps_json.c b/libgps_json.c index c15750f3..0b335280 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -117,7 +117,7 @@ static int json_sky_read(const char *buf, {"time", real, .addr.real = &gpsdata->fix.time}, {"reported", integer, .addr.integer = &gpsdata->satellites_used}, {"satellites", array, .addr.array.element_type = object, - .addr.array.arr.subtype = json_attrs_2_1, + .addr.array.arr.objects.subtype = json_attrs_2_1, .addr.array.maxlen = MAXCHANNELS}, {NULL}, }; @@ -186,7 +186,7 @@ static int json_devicelist_read(const char *buf, const struct json_attr_t json_attrs_devices[] = { {"class", check, .dflt.check = "DEVICES"}, {"devices", array, .addr.array.element_type = object, - .addr.array.arr.subtype = json_attrs_subdevices, + .addr.array.arr.objects.subtype = json_attrs_subdevices, .addr.array.maxlen = MAXDEVICES_PER_USER}, {NULL}, }; |