Making it compile. Fixing Issue #165 in fork root

This commit is contained in:
Arnold Dechamps 2024-09-01 21:00:31 +02:00
parent bff92c4ad7
commit 39cd6cb64e
No known key found for this signature in database
GPG key ID: AE66543374E41C89
3 changed files with 6 additions and 3 deletions

View file

@ -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 ==========================
// //

View file

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

View file

@ -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 ==========================
// //