summaryrefslogtreecommitdiff
path: root/jsongen.py.in
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-03-08 21:10:15 +0000
committerEric S. Raymond <esr@thyrsus.com>2010-03-08 21:10:15 +0000
commitb3fa9fcfb62f8694cae959c5c9f79957f3de2381 (patch)
treef9e48387906ea4ac6f8f740325e87ca8d414fcc9 /jsongen.py.in
parent1b20c0cdd58f4dadea3b81e8d30bc58986d3c975 (diff)
downloadgpsd-b3fa9fcfb62f8694cae959c5c9f79957f3de2381.tar.gz
Move some declarations from jsongen.py to jsongen.py.in, where they need to be.
Diffstat (limited to 'jsongen.py.in')
-rw-r--r--jsongen.py.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/jsongen.py.in b/jsongen.py.in
index a993cc3a..2bd2610f 100644
--- a/jsongen.py.in
+++ b/jsongen.py.in
@@ -360,6 +360,35 @@ ais_specs = (
('dim.to_starboard', 'uinteger', '0'), # Part B
),
},
+ {
+ "initname" : "json_ais25",
+ "header": "\tAIS_HEADER,",
+ "structname": "ais->type25",
+ "fieldmap":(
+ # fieldname type default
+ ('addressed', 'boolean', 'false'),
+ ('structured', 'boolean', 'false'),
+ ('dest_mmsi', 'uinteger', '0'),
+ ('app_id', 'uinteger', '0'),
+ ('data', 'string', None),
+ ),
+ "stringbuffered":("data",),
+ },
+ {
+ "initname" : "json_ais26",
+ "header": "\tAIS_HEADER,",
+ "structname": "ais->type26",
+ "fieldmap":(
+ # fieldname type default
+ ('addressed', 'boolean', 'false'),
+ ('structured', 'boolean', 'false'),
+ ('dest_mmsi', 'uinteger', '0'),
+ ('app_id', 'uinteger', '0'),
+ ('data', 'string', None),
+ ('radio', 'uinteger', '0'),
+ ),
+ "stringbuffered":("data",),
+ },
)