Add mode AC handling, and clean up the parsers and serializers to avoid duplication.

This commit is contained in:
Ian Gulliver
2016-02-27 21:50:15 -08:00
parent b7e32d1b48
commit 92334724f0
10 changed files with 176 additions and 296 deletions

View File

@@ -60,12 +60,13 @@ struct _Adsb
{
ProtobufCMessage base;
AdsbHeader *header;
AdsbPacket *mode_ac;
AdsbPacket *mode_s_short;
AdsbPacket *mode_s_long;
};
#define ADSB__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&adsb__descriptor) \
, NULL, NULL, NULL }
, NULL, NULL, NULL, NULL }
struct _AdsbStream