From 5172421d248250b4ab3b69eb57fd83656e23a4da Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 3 Sep 2020 03:00:30 +0200 Subject: This is unfinished work implemeting out-of-UFO network servers --- src/ufo-roof.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/ufo-roof.h') diff --git a/src/ufo-roof.h b/src/ufo-roof.h index 23f8429..ea422e2 100644 --- a/src/ufo-roof.h +++ b/src/ufo-roof.h @@ -1,21 +1,21 @@ -#ifndef __UFO_ROOF_H -#define __UFO_ROOF_H +#ifndef __ROOF_H +#define __ROOF_H #include "ufo-roof-config.h" #include "ufo-roof-error.h" -//#define UFO_ROOF_DEBUG -#define UFO_ROOF_PACKET_HEADER(buf) ((UfoRoofPacketHeader*)(buf)) -#define UFO_ROOF_PACKET_BLOCK_HEADER(buf, cfg) ((UfoRoofPacketBlockHeader*)(((uint8_t*)buf) + cfg->max_packets * cfg->max_packet_size)) +//#define ROOF_DEBUG +#define ROOF_PACKET_HEADER(buf) ((RoofPacketHeader*)(buf)) +#define ROOF_PACKET_BLOCK_HEADER(buf, cfg) ((RoofPacketBlockHeader*)(((uint8_t*)buf) + cfg->max_packets * cfg->max_packet_size)) typedef struct { uint64_t packet_id; // Sequential Packet ID (numbered from 0) -} UfoRoofPacketHeader; +} RoofPacketHeader; typedef struct { uint32_t channel_id; // Specifies channel on which the data were received (numbered from 0) uint32_t n_packets; // Number of packets -} UfoRoofPacketBlockHeader; +} RoofPacketBlockHeader; -#endif /* __UFO_ROOF_H */ +#endif /* __ROOF_H */ -- cgit v1.2.3