X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fdata.h;h=df16efe3014a748cdca1cac5cd19a4f24338a2b3;hb=83a3a266ff3cfecea7a6275924f3bdd15dfe6436;hp=9731a2d29255338d9698f4ff17824ee24cb804c7;hpb=ea228f75c1f6d83f9a02a5ad5a7341caabac65c8;p=matches%2FMCTX3420.git diff --git a/server/data.h b/server/data.h index 9731a2d..df16efe 100644 --- a/server/data.h +++ b/server/data.h @@ -1,6 +1,6 @@ /** - * @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 @@ -34,8 +34,7 @@ typedef enum */ 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 @@ -54,4 +53,5 @@ extern int Data_FindByTime(DataFile * df, double time_stamp, DataPoint * closest extern void Data_Handler(DataFile * df, FCGIValue * start, FCGIValue * end, DataFormat format, double current_time); // Helper; given FCGI params print data extern DataFormat Data_GetFormat(FCGIValue * fmt); // Helper; convert human readable format string to DataFormat + #endif //_DATAPOINT_H