34 lines
564 B
C
34 lines
564 B
C
#ifndef FACILITIES_H
|
|
#define FACILITIES_H
|
|
|
|
#include <pthread.h>
|
|
#include <stdbool.h>
|
|
|
|
#include "denm.h"
|
|
#include "queue.h"
|
|
|
|
#define FACILITIES_ADDRESS "ipc:///tmp/itss/facilities"
|
|
#define TRANSPORT_ADDRESS "ipc:///tmp/itss/transport"
|
|
#define APPLICATION_ADDRESS "ipc:///tmp/itss/application"
|
|
|
|
typedef struct facilities {
|
|
pthread_t ca_service;
|
|
pthread_t den_service;
|
|
pthread_t transmitting;
|
|
|
|
// ZMQ
|
|
void* ctx;
|
|
|
|
// Transmitter
|
|
queue_t* tx_queue;
|
|
|
|
// DENM
|
|
den_t *den;
|
|
|
|
int station_type;
|
|
|
|
bool exit;
|
|
} facilities_t;
|
|
|
|
#endif
|