Move proto into its own dir.

This commit is contained in:
Ian Gulliver
2016-02-25 15:22:57 -08:00
parent 3816be8b3d
commit aa940137c1
2 changed files with 2 additions and 2 deletions

View File

@@ -16,8 +16,8 @@ clean:
%.o: %.c *.h
$(CC) -c $(CFLAGS) $< -o $@
adsb.pb-c.c: adsb.proto
protoc-c --c_out=$(dir $<) $<
adsb.pb-c.c: ../proto/adsb.proto
protoc-c --c_out=./ --proto_path=$(dir $<) $<
adsbus: adsbus.o $(OBJ_NETWORK) $(OBJ_PROTOCOL) $(OBJ_UTIL) $(OBJ_PROTO)
$(CC) $(LDFLAGS) -o adsbus adsbus.o $(OBJ_NETWORK) $(OBJ_PROTOCOL) $(OBJ_UTIL) $(OBJ_PROTO) $(LIBS)

View File

@@ -1,23 +0,0 @@
message AdsbHeader {
required string magic = 1;
required string server_version = 2;
required string server_id = 3;
required fixed32 mlat_timestamp_mhz = 4;
required fixed64 mlat_timestamp_max = 5;
required fixed32 rssi_max = 6;
}
message AdsbPacket {
required string source_id = 1;
optional fixed64 mlat_timestamp = 2;
optional fixed32 rssi = 3;
required bytes payload = 4;
}
message Adsb {
oneof record {
AdsbHeader header = 1;
AdsbPacket mode_s_short = 2;
AdsbPacket mode_s_long = 3;
}
}