Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dump1090.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
//
#include "coaa.h"
#include "dump1090.h"

struct modes Modes;

//
// ============================= Utility functions ==========================
//
Expand Down
4 changes: 2 additions & 2 deletions dump1090.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@ struct stDF {
uint64_t llTimestamp; // Timestamp at which the this packet was received
uint32_t addr; // Timestamp at which the this packet was received
unsigned char msg[MODES_LONG_MSG_BYTES]; // the binary
} tDF;
};

// Program global state
struct { // Internal state
extern struct modes { // Internal state
pthread_t reader_thread;

pthread_mutex_t data_mutex; // Mutex to synchronize buffer access
Expand Down
3 changes: 3 additions & 0 deletions view1090.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
//
#include "coaa.h"
#include "view1090.h"

struct modes Modes;

//
// ============================= Utility functions ==========================
//
Expand Down