Started working on aqhome-nodes which will replace aqhomed.
This commit is contained in:
@@ -58,6 +58,7 @@ void _freeData(void *bp, void *p)
|
||||
|
||||
free(xep->serviceName);
|
||||
free(xep->userName);
|
||||
free(xep->password);
|
||||
|
||||
GWEN_FREE_OBJECT(xep);
|
||||
}
|
||||
@@ -177,6 +178,35 @@ void AQH_IpcEndpoint_SetUserName(GWEN_MSG_ENDPOINT *ep, const char *s)
|
||||
|
||||
|
||||
|
||||
const char *AQH_IpcEndpoint_GetPassword(const GWEN_MSG_ENDPOINT *ep)
|
||||
{
|
||||
if (ep) {
|
||||
AQH_ENDPOINT_IPC *xep;
|
||||
|
||||
xep=GWEN_INHERIT_GETDATA(GWEN_MSG_ENDPOINT, AQH_ENDPOINT_IPC, ep);
|
||||
if (xep)
|
||||
return xep->password;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void AQH_IpcEndpoint_SetPassword(GWEN_MSG_ENDPOINT *ep, const char *s)
|
||||
{
|
||||
if (ep) {
|
||||
AQH_ENDPOINT_IPC *xep;
|
||||
|
||||
xep=GWEN_INHERIT_GETDATA(GWEN_MSG_ENDPOINT, AQH_ENDPOINT_IPC, ep);
|
||||
if (xep) {
|
||||
free(xep->password);
|
||||
xep->password=s?strdup(s):NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
uint32_t AQH_IpcEndpoint_GetPermissions(const GWEN_MSG_ENDPOINT *ep)
|
||||
{
|
||||
if (ep) {
|
||||
|
||||
Reference in New Issue
Block a user