Start of wakeup framework.
This commit is contained in:
4
Makefile
4
Makefile
@@ -11,5 +11,5 @@ clean:
|
||||
%.o: %.c *.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
adsbus: adsbus.o receive.o send.o incoming.o outgoing.o airspy_adsb.o beast.o json.o raw.o stats.o common.o
|
||||
$(CC) $(LDFLAGS) -o adsbus adsbus.o receive.o send.o incoming.o outgoing.o airspy_adsb.o beast.o json.o raw.o stats.o common.o $(LIBS)
|
||||
adsbus: adsbus.o receive.o send.o incoming.o outgoing.o airspy_adsb.o beast.o json.o raw.o stats.o wakeup.o common.o
|
||||
$(CC) $(LDFLAGS) -o adsbus adsbus.o receive.o send.o incoming.o outgoing.o airspy_adsb.o beast.o json.o raw.o stats.o wakeup.o common.o $(LIBS)
|
||||
|
||||
7
adsbus.c
7
adsbus.c
@@ -4,6 +4,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "wakeup.h"
|
||||
|
||||
#include "receive.h"
|
||||
#include "send.h"
|
||||
@@ -174,9 +175,13 @@ static bool parse_opts(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
peer_init();
|
||||
hex_init();
|
||||
|
||||
peer_init();
|
||||
wakeup_init();
|
||||
|
||||
send_init();
|
||||
|
||||
airspy_adsb_init();
|
||||
beast_init();
|
||||
json_init();
|
||||
|
||||
14
wakeup.c
Normal file
14
wakeup.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#include "wakeup.h"
|
||||
|
||||
void wakeup_init() {
|
||||
int pipefd[2];
|
||||
assert(!pipe(pipefd));
|
||||
}
|
||||
|
||||
void wakeup_add(struct peer *peer, int delay_ms) {
|
||||
}
|
||||
Reference in New Issue
Block a user