/* * IGC parser - data linking module (doubly linked datapoint list) * @brief parse IGC file, get all data points, compute average horizontal/vertical speed, print to STDOUT * * As per standard: https://xp-soaring.github.io/igc_file_format/igc_format_2008.html * https://xp-soaring.github.io/igc_file_format/igc_fr_specification_with_al8_2023-2-1_0.pdf * * @author xamidev * @license GNU GPL v3 */ #ifndef LINKAGE_H #define LINKAGE_H #include "igc.h" struct dp_node { struct IGC_DataPoint* data; struct dp_node* prev; struct dp_node* next; }; struct dp_node* create_datapoint_list(); void append_datapoint(struct dp_node* list, struct IGC_DataPoint* dp); void print_datapoint_list(struct dp_node* list); #endif