53 lines
1.2 KiB
C
53 lines
1.2 KiB
C
/****************************************************************************
|
|
* 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_STORAGE_P_H
|
|
#define AQH_STORAGE_P_H
|
|
|
|
|
|
#include "aqhome/data/storage.h"
|
|
|
|
|
|
#define AQH_STORAGE_XML_ELEMENTNAME_LASTIDS "lastIds"
|
|
|
|
#define AQH_STORAGE_XML_ELEMENTNAME_ROOMS "rooms"
|
|
#define AQH_STORAGE_XML_ELEMENTNAME_ROOM "room"
|
|
|
|
#define AQH_STORAGE_XML_ELEMENTNAME_DEVICES "devices"
|
|
#define AQH_STORAGE_XML_ELEMENTNAME_DEVICE "device"
|
|
|
|
#define AQH_STORAGE_XML_ELEMENTNAME_TOPICS "topics"
|
|
#define AQH_STORAGE_XML_ELEMENTNAME_TOPIC "topic"
|
|
|
|
#define AQH_STORAGE_XML_ELEMENTNAME_VALUES "values"
|
|
#define AQH_STORAGE_XML_ELEMENTNAME_VALUE "value"
|
|
|
|
|
|
|
|
struct AQH_STORAGE {
|
|
AQH_ROOM_LIST *roomList;
|
|
AQH_DEVICE_LIST *deviceList;
|
|
AQH_MQTT_TOPIC_LIST *mqttTopicList;
|
|
AQH_VALUE_LIST *valueList;
|
|
|
|
uint64_t lastRoomId;
|
|
uint64_t lastDeviceId;
|
|
uint64_t lastTopicId;
|
|
uint64_t lastValueId;
|
|
|
|
char *stateFile;
|
|
|
|
uint32_t runtimeFlags;
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|