dp doubly linked list

This commit is contained in:
2025-11-08 09:05:19 +01:00
parent 1fe8c521e0
commit 724d1c9876
6 changed files with 151 additions and 31 deletions

29
linkage.h Normal file
View File

@@ -0,0 +1,29 @@
/*
* 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 <xamidev@riseup.net>
* @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