Files
aqhomecontrol/aqhome/data/datafile_direct_p.h
Martin Preuss 793d12693b aqhome: make datafile a virtual class. Add datafile_direct.
this is to allow for cached data file handling later.
2024-02-11 22:21:49 +01:00

37 lines
811 B
C

/****************************************************************************
* This file is part of the project Gwenhywfar.
* Gwenhywfar (c) by 2023 Martin Preuss, all rights reserved.
*
* The license for this file can be found in the file COPYING which you
* should have received along with this file.
****************************************************************************/
#ifndef AQH_DATAFILE_DIRECT_P_H
#define AQH_DATAFILE_DIRECT_P_H
#include "./datafile_direct.h"
#include <gwenhywfar/syncio.h>
#define AQH_DATAFILE_RECORDSIZE 16
#define AQH_DATAFILE_OFFSET_TIMESTAMP 0
#define AQH_DATAFILE_OFFSET_VALUE 8
typedef struct AQH_DATAFILE_DIRECT AQH_DATAFILE_DIRECT;
struct AQH_DATAFILE_DIRECT {
char *fileName;
GWEN_SYNCIO *sio;
uint64_t numberOfEntries;
};
#endif