Making it compile. Fixing Issue #165 in fork root
This commit is contained in:
parent
bff92c4ad7
commit
39cd6cb64e
|
@ -29,6 +29,7 @@
|
||||||
//
|
//
|
||||||
#include "coaa.h"
|
#include "coaa.h"
|
||||||
#include "dump1090.h"
|
#include "dump1090.h"
|
||||||
|
struct stModes Modes; struct stDF tDF;
|
||||||
//
|
//
|
||||||
// ============================= Utility functions ==========================
|
// ============================= Utility functions ==========================
|
||||||
//
|
//
|
||||||
|
|
|
@ -235,10 +235,10 @@ struct stDF {
|
||||||
uint64_t llTimestamp; // Timestamp at which the this packet was received
|
uint64_t llTimestamp; // Timestamp at which the this packet was received
|
||||||
uint32_t addr; // 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
|
unsigned char msg[MODES_LONG_MSG_BYTES]; // the binary
|
||||||
} tDF;
|
};
|
||||||
|
|
||||||
// Program global state
|
// Program global state
|
||||||
struct { // Internal state
|
struct stModes { // Internal state
|
||||||
pthread_t reader_thread;
|
pthread_t reader_thread;
|
||||||
|
|
||||||
pthread_mutex_t data_mutex; // Mutex to synchronize buffer access
|
pthread_mutex_t data_mutex; // Mutex to synchronize buffer access
|
||||||
|
@ -370,7 +370,8 @@ struct { // Internal state
|
||||||
|
|
||||||
unsigned int stat_blocks_processed;
|
unsigned int stat_blocks_processed;
|
||||||
unsigned int stat_blocks_dropped;
|
unsigned int stat_blocks_dropped;
|
||||||
} Modes;
|
};
|
||||||
|
extern struct stModes Modes; extern struct stDF tDF;
|
||||||
|
|
||||||
// The struct we use to store information about a decoded message.
|
// The struct we use to store information about a decoded message.
|
||||||
struct modesMessage {
|
struct modesMessage {
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
//
|
//
|
||||||
#include "coaa.h"
|
#include "coaa.h"
|
||||||
#include "view1090.h"
|
#include "view1090.h"
|
||||||
|
struct stModes Modes; struct stDF tDF;
|
||||||
//
|
//
|
||||||
// ============================= Utility functions ==========================
|
// ============================= Utility functions ==========================
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue