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);