49 lines
1.3 KiB
C
49 lines
1.3 KiB
C
/****************************************************************************
|
|
* 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 AQHOMED_H
|
|
#define AQHOMED_H
|
|
|
|
|
|
#include <gwenhywfar/endpoint2.h>
|
|
#include <gwenhywfar/db.h>
|
|
|
|
|
|
#define AQHOME_ENDPOINTGROUP_NODE 1
|
|
#define AQHOME_ENDPOINTGROUP_IPC 2
|
|
#define AQHOME_ENDPOINTGROUP_MQTT 4
|
|
|
|
|
|
typedef struct AQHOMED AQHOMED;
|
|
|
|
AQHOMED *AqHomed_new(void);
|
|
void AqHomed_free(AQHOMED *aqh);
|
|
|
|
GWEN_MSG_ENDPOINT2 *AqHomed_GetTtyEndpoint(const AQHOMED *aqh);
|
|
GWEN_MSG_ENDPOINT2 *AqHomed_GetIpcdEndpoint(const AQHOMED *aqh);
|
|
GWEN_MSG_ENDPOINT2 *AqHomed_GetMqttEndpoint(const AQHOMED *aqh);
|
|
|
|
GWEN_DB_NODE *AqHomed_GetDbArgs(const AQHOMED *aqh);
|
|
|
|
const char *AqHomed_GetLogFile(const AQHOMED *aqh);
|
|
void AqHomed_SetLogFile(AQHOMED *aqh, const char *s);
|
|
|
|
const char *AqHomed_GetWriteFolder(const AQHOMED *aqh);
|
|
void AqHomed_SetWriteFolder(AQHOMED *aqh, const char *s);
|
|
|
|
const char *AqHomed_GetPidFile(const AQHOMED *aqh);
|
|
void AqHomed_SetPidFile(AQHOMED *aqh, const char *s);
|
|
|
|
const char *AqHomed_GetDbFile(const AQHOMED *aqh);
|
|
void AqHomed_SetDbFile(AQHOMED *aqh, const char *s);
|
|
|
|
|
|
#endif
|
|
|
|
|