added devices, added command getdevices.
This commit is contained in:
@@ -31,7 +31,7 @@ typedef struct AQH_STORAGE AQH_STORAGE;
|
||||
#include "aqhome/data/device.h"
|
||||
#include "aqhome/data/mqtttopic.h"
|
||||
#include "aqhome/data/value.h"
|
||||
#include "aqhome/data/datapoint.h"
|
||||
#include "aqhome/data/device.h"
|
||||
|
||||
|
||||
#define AQH_STORAGE_RTFLAGS_MODIFIED 0x0001
|
||||
@@ -54,6 +54,11 @@ AQHOME_API AQH_VALUE_LIST *AQH_Storage_GetValueList(const AQH_STORAGE *sto);
|
||||
AQHOME_API AQH_VALUE *AQH_Storage_GetValueById(const AQH_STORAGE *sto, uint64_t id);
|
||||
AQHOME_API AQH_VALUE *AQH_Storage_GetValueByNameForSystem(const AQH_STORAGE *sto, const char *s);
|
||||
|
||||
AQHOME_API void AQH_Storage_AddDevice(AQH_STORAGE *sto, AQH_DEVICE *device);
|
||||
AQHOME_API AQH_DEVICE_LIST *AQH_Storage_GetDeviceList(const AQH_STORAGE *sto);
|
||||
AQHOME_API AQH_DEVICE *AQH_Storage_GetDeviceById(const AQH_STORAGE *sto, uint64_t id);
|
||||
AQHOME_API AQH_DEVICE *AQH_Storage_GetDeviceByNameForSystem(const AQH_STORAGE *sto, const char *s);
|
||||
|
||||
AQHOME_API const char *AQH_Storage_GetStateFile(const AQH_STORAGE *sto);
|
||||
AQHOME_API void AQH_Storage_SetStateFile(AQH_STORAGE *sto, const char *s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user