aqhome: moved datafile implementations into their own folder.

This commit is contained in:
Martin Preuss
2024-09-13 21:43:00 +02:00
parent 7a5900be25
commit 4687a8726b
8 changed files with 166 additions and 10 deletions

View File

@@ -0,0 +1,36 @@
/****************************************************************************
* 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_DF_DIRECT_P_H
#define AQH_DF_DIRECT_P_H
#include "./df_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