fixed memory leaks, added cleanup code, added valgrind scripts to test binaries
This commit is contained in:
@@ -34,6 +34,9 @@ typedef struct AQH_STORAGE AQH_STORAGE;
|
||||
#include "aqhome/data/datapoint.h"
|
||||
|
||||
|
||||
#define AQH_STORAGE_RTFLAGS_MODIFIED 0x0001
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -67,6 +70,11 @@ AQHOME_API AQH_VALUE *AQH_Storage_GetValueById(const AQH_STORAGE *sto, uint64_t
|
||||
AQHOME_API const char *AQH_Storage_GetStateFile(const AQH_STORAGE *sto);
|
||||
AQHOME_API void AQH_Storage_SetStateFile(AQH_STORAGE *sto, const char *s);
|
||||
|
||||
AQHOME_API uint32_t AQH_Storage_GetRuntimeFlags(const AQH_STORAGE *sto);
|
||||
AQHOME_API void AQH_Storage_SetRuntimeFlags(AQH_STORAGE *sto, uint32_t flags);
|
||||
AQHOME_API void AQH_Storage_AddRuntimeFlags(AQH_STORAGE *sto, uint32_t flags);
|
||||
AQHOME_API void AQH_Storage_SubRuntimeFlags(AQH_STORAGE *sto, uint32_t flags);
|
||||
|
||||
|
||||
AQHOME_API int AQH_Storage_Init(AQH_STORAGE *sto);
|
||||
AQHOME_API int AQH_Storage_WriteState(AQH_STORAGE *sto);
|
||||
|
||||
Reference in New Issue
Block a user