From da1ea9c2684c3143cfd4127ead836d5ba4fa276e Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Tue, 21 Feb 2023 06:19:28 +0100 Subject: [PATCH] added AQH_MsgEndpoint_SetFd(). --- aqhome/msgendpoint.c | 6 ++++++ aqhome/msgendpoint.h | 1 + 2 files changed, 7 insertions(+) diff --git a/aqhome/msgendpoint.c b/aqhome/msgendpoint.c index 9b6bfe7..ce20629 100644 --- a/aqhome/msgendpoint.c +++ b/aqhome/msgendpoint.c @@ -93,6 +93,12 @@ int AQH_MsgEndpoint_GetFd(const AQH_MSG_ENDPOINT *ep) +void AQH_MsgEndpoint_SetFd(AQH_MSG_ENDPOINT *ep, int fd) +{ + ep->fd=fd; +} + + uint32_t AQH_MsgEndpoint_GetGroupId(const AQH_MSG_ENDPOINT *ep) { return ep->groupId; diff --git a/aqhome/msgendpoint.h b/aqhome/msgendpoint.h index 25fb7d2..63f0724 100644 --- a/aqhome/msgendpoint.h +++ b/aqhome/msgendpoint.h @@ -62,6 +62,7 @@ AQHOME_API AQH_MSG_ENDPOINT *AQH_MsgEndpoint_new(int fd, int groupId); AQHOME_API void AQH_MsgEndpoint_free(AQH_MSG_ENDPOINT *ep); AQHOME_API int AQH_MsgEndpoint_GetFd(const AQH_MSG_ENDPOINT *ep); +AQHOME_API void AQH_MsgEndpoint_SetFd(AQH_MSG_ENDPOINT *ep, int fd); AQHOME_API uint32_t AQH_MsgEndpoint_GetGroupId(const AQH_MSG_ENDPOINT *ep);