diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-06-14 18:52:34 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-06-14 18:52:34 -0400 |
commit | e5cf5cd806ee0277ec4174acc9dfdf7cb0c85f64 (patch) | |
tree | 45a78c70c07dcc003de6e9a4f998bba9620d54f8 /packet_states.h | |
parent | 6d3452b088042bcb6deb9521efa53dd0f9a029cd (diff) | |
download | gpsd-e5cf5cd806ee0277ec4174acc9dfdf7cb0c85f64.tar.gz |
First xut at JSON passthrough code.
Not turned in by default yet; it interferes with RTCM2 decoding.
Diffstat (limited to 'packet_states.h')
-rw-r--r-- | packet_states.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packet_states.h b/packet_states.h index 2d426444..07adaeda 100644 --- a/packet_states.h +++ b/packet_states.h @@ -182,4 +182,16 @@ RTCM3_RECOGNIZED, /* RTCM3 packet recognized */ #endif +#ifdef PASSTHROUGH_ENABLE + JSON_LEADER, /* JSON leading { found */ + JSON_STRINGLITERAL, /* start of JSON string literal seen */ + JSON_STRING_SOLIDUS, /* backslash in string */ + JSON_END_ATTRIBUTE, /* end of JSON attribute */ + JSON_EXPECT_VALUE, /* just after colon */ + JSON_END_VALUE, /* end of JSON value */ + JSON_NUMBER, /* inside a JSON numeric literal */ + JSON_SPECIAL, /* inside a JSON special literal (true,false,null) */ + JSON_RECOGNIZED, /* JSON packet recognized */ +#endif + /* end of packet_states.h */ |