/**
- * @file datapoint.h
- * @purpose Declaration of data handling functions; saving, loading, displaying, selecting.
+ * @file data.h
+ * @brief Declaration of data handling functions; saving, loading, displaying, selecting.
*/
#ifndef _DATAPOINT_H
*/
typedef struct
{
- FILE * read_file; // used for reading
- FILE * write_file; // used for writing
+ FILE * file; // file pointer
int num_points; // Number of DataPoints in the file
char * filename; // Name of the file
pthread_mutex_t mutex; // Mutex around num_points