started working on storage service.
This commit is contained in:
43
apps/aqhome-storage/aqhomestorage_p.h
Normal file
43
apps/aqhome-storage/aqhomestorage_p.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/****************************************************************************
|
||||
* This file is part of the project AqHome.
|
||||
* AqHome (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 AQHOME_STORAGE_P_H
|
||||
#define AQHOME_STORAGE_P_H
|
||||
|
||||
|
||||
#include "./aqhomestorage.h"
|
||||
|
||||
|
||||
|
||||
/* default values */
|
||||
#define AQHOME_STORAGE_DEFAULT_PIDFILE "/var/run/aqhome-storage.pid"
|
||||
#define AQHOME_STORAGE_DEFAULT_IPC_PORT 45455
|
||||
#define AQHOME_STORAGE_DEFAULT_HTTP_PORT 45456
|
||||
#define AQHOME_STORAGE_DEFAULT_MQTT_CLIENTID "AQHOMESTORAGE"
|
||||
#define AQHOME_STORAGE_DEFAULT_MQTT_KEEPALIVE 600
|
||||
#define AQHOME_STORAGE_DEFAULT_MQTT_PORT 1883
|
||||
|
||||
|
||||
|
||||
struct AQHOME_STORAGE {
|
||||
GWEN_MSG_ENDPOINT *rootEndpoint;
|
||||
|
||||
GWEN_MSG_ENDPOINT *ipcdEndpoint;
|
||||
GWEN_MSG_ENDPOINT *mqttEndpoint;
|
||||
GWEN_MSG_ENDPOINT *httpdEndpoint;
|
||||
|
||||
GWEN_DB_NODE *dbArgs;
|
||||
|
||||
AQH_STORAGE *storage;
|
||||
|
||||
char *pidFile;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user