Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortjung2012-04-25 18:15:16 +0000
committertjung2012-04-25 18:15:16 +0000
commit0bd09dc1dc8cb0643fcfc39d4abe9fb47d89b409 (patch)
treea9cb5bb68657f6a4f07ffb285a1cff047ec09366 /runtime/org.eclipse.etrice.runtime.c/src/common/modelbase
parent23c680ff9c5567d0f8ed1237ab3ed7b03471f07f (diff)
downloadorg.eclipse.etrice-0bd09dc1dc8cb0643fcfc39d4abe9fb47d89b409.tar.gz
org.eclipse.etrice-0bd09dc1dc8cb0643fcfc39d4abe9fb47d89b409.tar.xz
org.eclipse.etrice-0bd09dc1dc8cb0643fcfc39d4abe9fb47d89b409.zip
[generator.c] port handles and port attributes implemented, C runtime adapted
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src/common/modelbase')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.c3
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.h8
2 files changed, 5 insertions, 6 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.c b/runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.c
index 90b0f19cb..d8b94aa04 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.c
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.c
@@ -16,13 +16,14 @@
#include "platform/etMemory.h"
#include <string.h>
+/*
void etPort_receive(const etPort* self, const etMessage* msg) {
ET_MSC_LOGGER_SYNC_ENTRY("etPort", "receive")
if (self->receiveMessageFunc!=NULL)
(self->receiveMessageFunc)(self->myActor, (void*)self, msg);
ET_MSC_LOGGER_SYNC_EXIT
}
-
+*/
void etPort_sendMessage(const etPort* self, etInt16 evtId, int size, void* data) {
int offset = MEM_CEIL(sizeof(etMessage));
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.h b/runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.h
index 49321065a..f6fe71c2d 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.h
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/modelbase/etPort.h
@@ -21,8 +21,7 @@
#include "messaging/etMessageService.h"
typedef struct {
- void* myActor;
- etActorReceiveMessage receiveMessageFunc;
+ void* varData;
etMessageService* msgService;
etAddressId peerAddress;
etAddressId localId;
@@ -34,8 +33,7 @@ typedef struct {
} etPort;
typedef struct {
- void* myActor;
- etActorReceiveMessage receiveMessageFunc;
+ void* varData;
etMessageService* msgService;
etAddressId peerAddress;
etAddressId localId;
@@ -54,7 +52,7 @@ typedef struct {
typedef etPort* InterfaceItemBase;
-void etPort_receive(const etPort* self, const etMessage* msg);
+//void etPort_receive(const etPort* self, const etMessage* msg);
void etPort_sendMessage(const etPort* self, etInt16 evtId, int size, void* data);

Back to the top