added AQH_MsgEndpoint_SetFd().

This commit is contained in:
Martin Preuss
2023-02-21 06:19:28 +01:00
parent f727d3bb2f
commit da1ea9c268
2 changed files with 7 additions and 0 deletions

View File

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

View File

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