From 4687a8726b2376b3e31b90221f92ab695373b556 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Fri, 13 Sep 2024 21:43:00 +0200 Subject: [PATCH] aqhome: moved datafile implementations into their own folder. --- aqhome/data/0BUILD | 5 +- aqhome/data/datafile/0BUILD | 79 +++++++++++++++++++ aqhome/data/datafile/df_direct/0BUILD | 78 ++++++++++++++++++ .../df_direct/df_direct.c} | 2 +- .../df_direct/df_direct.h} | 4 +- .../df_direct/df_direct_p.h} | 6 +- aqhome/data/datafile/dummy.c | 0 aqhome/data/storage.c | 2 +- 8 files changed, 166 insertions(+), 10 deletions(-) create mode 100644 aqhome/data/datafile/0BUILD create mode 100644 aqhome/data/datafile/df_direct/0BUILD rename aqhome/data/{datafile_direct.c => datafile/df_direct/df_direct.c} (99%) rename aqhome/data/{datafile_direct.h => datafile/df_direct/df_direct.h} (93%) rename aqhome/data/{datafile_direct_p.h => datafile/df_direct/df_direct_p.h} (88%) create mode 100644 aqhome/data/datafile/dummy.c diff --git a/aqhome/data/0BUILD b/aqhome/data/0BUILD index 9769501..f6e7585 100644 --- a/aqhome/data/0BUILD +++ b/aqhome/data/0BUILD @@ -57,7 +57,6 @@ storage.h - datafile_direct.h @@ -65,7 +64,6 @@ storage_p.h storage_readxml.h storage_writexml.h - datafile_direct_p.h vars.h vars_p.h vars_dbread.h @@ -80,7 +78,6 @@ storage.c storage_readxml.c storage_writexml.c - datafile_direct.c vars.c vars_dbread.c vars_dbwrite.c @@ -101,9 +98,11 @@ + aqhdf + datafile diff --git a/aqhome/data/datafile/0BUILD b/aqhome/data/datafile/0BUILD new file mode 100644 index 0000000..6a7b784 --- /dev/null +++ b/aqhome/data/datafile/0BUILD @@ -0,0 +1,79 @@ + + + + + + + + $(gwenhywfar_cflags) + -I$(topsrcdir) + -I$(topbuilddir) + + + + --include=$(builddir) + --include=$(srcdir) + + + + + + $(visibility_cflags) + + + + --api=AQHOME_API + + + + + + + + + + + + + + + + + + $(local/built_headers_pub) + + + + + + + + + + + + + $(local/typefiles) + dummy.c + + + + + + + + + aqhdf_direct + + + + df_direct + + + + + + + + + diff --git a/aqhome/data/datafile/df_direct/0BUILD b/aqhome/data/datafile/df_direct/0BUILD new file mode 100644 index 0000000..5c08e3f --- /dev/null +++ b/aqhome/data/datafile/df_direct/0BUILD @@ -0,0 +1,78 @@ + + + + + + + + $(gwenhywfar_cflags) + -I$(topsrcdir) + -I$(topbuilddir) + + + + --include=$(builddir) + --include=$(srcdir) + + + + + + $(visibility_cflags) + + + + --api=AQHOME_API + + + + + + + + + + + + + + + + + + $(local/built_headers_pub) + + + + + + + + + df_direct.h + + + + + $(local/typefiles) + df_direct.c + + + + + + + + + + + + + + + + + + + + diff --git a/aqhome/data/datafile_direct.c b/aqhome/data/datafile/df_direct/df_direct.c similarity index 99% rename from aqhome/data/datafile_direct.c rename to aqhome/data/datafile/df_direct/df_direct.c index b066c74..27bc70b 100644 --- a/aqhome/data/datafile_direct.c +++ b/aqhome/data/datafile/df_direct/df_direct.c @@ -10,7 +10,7 @@ # include #endif -#include "./datafile_direct_p.h" +#include "./df_direct_p.h" #include #include diff --git a/aqhome/data/datafile_direct.h b/aqhome/data/datafile/df_direct/df_direct.h similarity index 93% rename from aqhome/data/datafile_direct.h rename to aqhome/data/datafile/df_direct/df_direct.h index ecf4aaa..f2864ae 100644 --- a/aqhome/data/datafile_direct.h +++ b/aqhome/data/datafile/df_direct/df_direct.h @@ -6,8 +6,8 @@ * should have received along with this file. ****************************************************************************/ -#ifndef AQH_DATAFILE_H -#define AQH_DATAFILE_H +#ifndef AQH_DF_DIRECT_H +#define AQH_DF_DIRECT_H #include "aqhome/data/storage.h" diff --git a/aqhome/data/datafile_direct_p.h b/aqhome/data/datafile/df_direct/df_direct_p.h similarity index 88% rename from aqhome/data/datafile_direct_p.h rename to aqhome/data/datafile/df_direct/df_direct_p.h index 903ec4b..0d007d3 100644 --- a/aqhome/data/datafile_direct_p.h +++ b/aqhome/data/datafile/df_direct/df_direct_p.h @@ -6,11 +6,11 @@ * should have received along with this file. ****************************************************************************/ -#ifndef AQH_DATAFILE_DIRECT_P_H -#define AQH_DATAFILE_DIRECT_P_H +#ifndef AQH_DF_DIRECT_P_H +#define AQH_DF_DIRECT_P_H -#include "./datafile_direct.h" +#include "./df_direct.h" #include diff --git a/aqhome/data/datafile/dummy.c b/aqhome/data/datafile/dummy.c new file mode 100644 index 0000000..e69de29 diff --git a/aqhome/data/storage.c b/aqhome/data/storage.c index 0fc1851..74a8a65 100644 --- a/aqhome/data/storage.c +++ b/aqhome/data/storage.c @@ -13,7 +13,7 @@ #include "aqhome/data/storage_p.h" #include "aqhome/data/storage_readxml.h" #include "aqhome/data/storage_writexml.h" -#include "aqhome/data/datafile_direct.h" +#include "aqhome/data/datafile/df_direct/df_direct.h" #include #include