diff --git a/Makefile b/Makefile index 5888ee3..f69b5e5 100644 --- a/Makefile +++ b/Makefile @@ -11,5 +11,5 @@ clean: %.o: %.c *.h $(CC) -c $(CFLAGS) $< -o $@ -adsbus: adsbus.o backend.o client.o airspy_adsb.o json.o common.o - $(CC) $(LDFLAGS) -o adsbus adsbus.o backend.o client.o airspy_adsb.o json.o common.o $(LIBS) +adsbus: adsbus.o backend.o client.o airspy_adsb.o beast.o json.o common.o + $(CC) $(LDFLAGS) -o adsbus adsbus.o backend.o client.o airspy_adsb.o beast.o json.o common.o $(LIBS) diff --git a/adsbus.c b/adsbus.c index 9c7867f..7dbe6cb 100644 --- a/adsbus.c +++ b/adsbus.c @@ -8,6 +8,7 @@ #include "backend.h" #include "client.h" #include "airspy_adsb.h" +#include "beast.h" #include "json.h" @@ -68,6 +69,7 @@ static int loop(int epoll_fd) { int main(int argc, char *argv[]) { hex_init(); airspy_adsb_init(); + beast_init(); json_init(); int epoll_fd = epoll_create1(0); diff --git a/backend.c b/backend.c index f9f8e4b..89ed760 100644 --- a/backend.c +++ b/backend.c @@ -7,6 +7,7 @@ #include #include "airspy_adsb.h" +#include "beast.h" #include "client.h" #include "backend.h" @@ -16,6 +17,7 @@ bool backend_autodetect_parse(struct backend *, struct packet *); static parser parsers[] = { airspy_adsb_parse, + beast_parse, }; #define NUM_PARSERS (sizeof(parsers) / sizeof(*parsers)) diff --git a/beast.c b/beast.c new file mode 100644 index 0000000..47651b4 --- /dev/null +++ b/beast.c @@ -0,0 +1,9 @@ +#include "beast.h" + + +void beast_init() { +} + +bool beast_parse(struct backend *backend, struct packet *packet) { + return false; +} diff --git a/beast.h b/beast.h new file mode 100644 index 0000000..c0efd7b --- /dev/null +++ b/beast.h @@ -0,0 +1,8 @@ +#pragma once + +#include +#include "backend.h" +#include "common.h" + +void beast_init(); +bool beast_parse(struct backend *, struct packet *);