Add beast structure.
This commit is contained in:
4
Makefile
4
Makefile
@@ -11,5 +11,5 @@ clean:
|
|||||||
%.o: %.c *.h
|
%.o: %.c *.h
|
||||||
$(CC) -c $(CFLAGS) $< -o $@
|
$(CC) -c $(CFLAGS) $< -o $@
|
||||||
|
|
||||||
adsbus: adsbus.o backend.o client.o airspy_adsb.o json.o common.o
|
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 json.o common.o $(LIBS)
|
$(CC) $(LDFLAGS) -o adsbus adsbus.o backend.o client.o airspy_adsb.o beast.o json.o common.o $(LIBS)
|
||||||
|
|||||||
2
adsbus.c
2
adsbus.c
@@ -8,6 +8,7 @@
|
|||||||
#include "backend.h"
|
#include "backend.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "airspy_adsb.h"
|
#include "airspy_adsb.h"
|
||||||
|
#include "beast.h"
|
||||||
#include "json.h"
|
#include "json.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -68,6 +69,7 @@ static int loop(int epoll_fd) {
|
|||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
hex_init();
|
hex_init();
|
||||||
airspy_adsb_init();
|
airspy_adsb_init();
|
||||||
|
beast_init();
|
||||||
json_init();
|
json_init();
|
||||||
|
|
||||||
int epoll_fd = epoll_create1(0);
|
int epoll_fd = epoll_create1(0);
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "airspy_adsb.h"
|
#include "airspy_adsb.h"
|
||||||
|
#include "beast.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "backend.h"
|
#include "backend.h"
|
||||||
|
|
||||||
@@ -16,6 +17,7 @@ bool backend_autodetect_parse(struct backend *, struct packet *);
|
|||||||
|
|
||||||
static parser parsers[] = {
|
static parser parsers[] = {
|
||||||
airspy_adsb_parse,
|
airspy_adsb_parse,
|
||||||
|
beast_parse,
|
||||||
};
|
};
|
||||||
#define NUM_PARSERS (sizeof(parsers) / sizeof(*parsers))
|
#define NUM_PARSERS (sizeof(parsers) / sizeof(*parsers))
|
||||||
|
|
||||||
|
|||||||
9
beast.c
Normal file
9
beast.c
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#include "beast.h"
|
||||||
|
|
||||||
|
|
||||||
|
void beast_init() {
|
||||||
|
}
|
||||||
|
|
||||||
|
bool beast_parse(struct backend *backend, struct packet *packet) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user