Add beast structure.

This commit is contained in:
Ian Gulliver
2016-02-16 03:42:41 +00:00
parent 1d762390ac
commit 112a978557
5 changed files with 23 additions and 2 deletions

View File

@@ -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)

View File

@@ -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);

View File

@@ -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
View File

@@ -0,0 +1,9 @@
#include "beast.h"
void beast_init() {
}
bool beast_parse(struct backend *backend, struct packet *packet) {
return false;
}

8
beast.h Normal file
View File

@@ -0,0 +1,8 @@
#pragma once
#include <stdbool.h>
#include "backend.h"
#include "common.h"
void beast_init();
bool beast_parse(struct backend *, struct packet *);