aqhome: completed adapting to msgio2 interface.
This commit is contained in:
@@ -74,6 +74,7 @@ void AqHomed_free(AQHOMED *aqh)
|
||||
free(aqh->writeFolder);
|
||||
free(aqh->pidFile);
|
||||
free(aqh->dbFile);
|
||||
free(aqh->mqttTopicPrefix);
|
||||
|
||||
GWEN_FREE_OBJECT(aqh);
|
||||
}
|
||||
@@ -177,7 +178,20 @@ void AqHomed_SetDbFile(AQHOMED *aqh, const char *s)
|
||||
|
||||
|
||||
|
||||
|
||||
const char *AqHomed_GetMqttTopicPrefix(const AQHOMED *aqh)
|
||||
{
|
||||
return aqh?aqh->mqttTopicPrefix:NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void AqHomed_SetMqttTopicPrefix(AQHOMED *aqh, const char *s)
|
||||
{
|
||||
if (aqh) {
|
||||
free(aqh->mqttTopicPrefix);
|
||||
aqh->mqttTopicPrefix=s?strdup(s):NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user