adapted to latest changes in gwen.
This commit is contained in:
@@ -42,7 +42,6 @@ GWEN_MSG_ENDPOINT *AQH_NodeEndpoint_new(const char *name, int groupId)
|
||||
|
||||
ep=GWEN_MsgEndpoint_new(name?name:AQH_MSG_ENDPOINT_NODE_NAME, groupId);
|
||||
AQH_NodeEndpoint_Extend(ep);
|
||||
|
||||
return ep;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ GWEN_MSG_ENDPOINT_MGR *AQH_MsgEndpointMgr_new(uint8_t busAddr)
|
||||
mgr=GWEN_MsgEndpointMgr_new();
|
||||
GWEN_NEW_OBJECT(AQH_MSG_ENDPOINT_MGR, xmgr);
|
||||
GWEN_INHERIT_SETDATA(GWEN_MSG_ENDPOINT_MGR, AQH_MSG_ENDPOINT_MGR, mgr, xmgr, _freeData);
|
||||
|
||||
xmgr->busAddr=busAddr;
|
||||
|
||||
return mgr;
|
||||
@@ -67,16 +66,16 @@ void AQH_MsgEndpointMgr_DistributeMsgFromNodeEndpoint(GWEN_MSG_ENDPOINT_MGR *emg
|
||||
endpointList=GWEN_MsgEndpointMgr_GetEndpointList(emgr);
|
||||
if (endpointList) {
|
||||
GWEN_MSG_ENDPOINT *ep;
|
||||
int srcGroupId;
|
||||
int acceptedGroupIds;
|
||||
uint32_t msgGroup;
|
||||
|
||||
msgGroup=AQH_NodeMsg_GetMsgGroup(AQH_NodeMsg_GetMsgType(msg));
|
||||
srcGroupId=GWEN_MsgEndpoint_GetGroupId(srcEp);
|
||||
acceptedGroupIds=GWEN_MsgEndpoint_GetAcceptedGroupIds(srcEp);
|
||||
|
||||
ep=GWEN_MsgEndpoint_List_First(endpointList);
|
||||
while(ep) {
|
||||
if (ep!=srcEp) {
|
||||
if (srcGroupId & groupId) {
|
||||
if (acceptedGroupIds & groupId) {
|
||||
uint32_t acceptedMsgGroups;
|
||||
|
||||
acceptedMsgGroups=AQH_NodeEndpoint_GetAcceptedMsgGroups(ep);
|
||||
|
||||
Reference in New Issue
Block a user