Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Schuetz2012-02-24 14:44:37 +0000
committerThomas Schuetz2012-02-24 14:44:37 +0000
commit724f46d55b352c16731b46a332b13d436b536aae (patch)
treea013139d985b009a95434ce4467e2763116a5f83 /runtime/org.eclipse.etrice.runtime.c/src/etPort.c
parentee668a71dbbf0730df6fc70df5db9328e3e7057d (diff)
parent174c1f53eb51741e3487927540dbde06ee10df44 (diff)
downloadorg.eclipse.etrice-724f46d55b352c16731b46a332b13d436b536aae.tar.gz
org.eclipse.etrice-724f46d55b352c16731b46a332b13d436b536aae.tar.xz
org.eclipse.etrice-724f46d55b352c16731b46a332b13d436b536aae.zip
Merge branch 'master' of ssh://git.eclipse.org/gitroot/etrice/org.eclipse.etrice
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src/etPort.c')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/etPort.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/etPort.c b/runtime/org.eclipse.etrice.runtime.c/src/etPort.c
index ce8c5045c..24f22043d 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/etPort.c
+++ b/runtime/org.eclipse.etrice.runtime.c/src/etPort.c
@@ -21,3 +21,10 @@ void etPort_receive(const etPort* self, const etMessage* msg) {
ET_MSC_LOGGER_SYNC_EXIT
}
+
+void etPort_sendMessage(const etPort* self, etInt16 evtId) {
+ etMessage* msg = etMessageService_getMessageBuffer(self->msgService, sizeof(etMessage));
+ msg->address = self->peerAddress;
+ msg->evtID = evtId;
+ etMessageService_pushMessage(self->msgService, msg);
+}

Back to the top