Storage: make storage class virtual with default implementations.

This commit is contained in:
Martin Preuss
2024-02-11 20:07:30 +01:00
parent b6fe1775bd
commit 5888bc9068
3 changed files with 184 additions and 34 deletions

View File

@@ -25,6 +25,8 @@
struct AQH_STORAGE {
GWEN_INHERIT_ELEMENT(AQH_STORAGE)
AQH_VALUE_LIST *valueList;
AQH_DEVICE_LIST *deviceList;
@@ -37,6 +39,14 @@ struct AQH_STORAGE {
AQH_DATAFILE_LIST *dataFileList;
uint32_t runtimeFlags;
AQH_STORAGE_INIT_FN initFn;
AQH_STORAGE_FINI_FN finiFn;
AQH_STORAGE_ADDDATAPOINT_FN addDatapointFn;
AQH_STORAGE_GETDATAPOINTS_FN getDatapointsFn;
AQH_STORAGE_GETFIRSTDATAPOINT_FN getFirstDatapointFn;
AQH_STORAGE_GETLASTDATAPOINT_FN getLastDatapointFn;
AQH_STORAGE_GETLASTNDATAPOINTS_FN getLastNDatapointsFn;
};