blob: 566c947079c11724808f44da541969673c5ceeec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*******************************************************************************
* Copyright (c) 2012 protos software gmbh (http://www.protos.de).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* CONTRIBUTORS:
* Thomas Schuetz (initial contribution)
*
*******************************************************************************/
/**
* \file etMessageReceiver.h
*
* method prototypes used by the messaging
*
* \author Thomas Schuetz
*/
#ifndef _ETMESSAGERECEIVER_H_
#define _ETMESSAGERECEIVER_H_
#include "messaging/etMessage.h"
/**
* method prototype that receives a message
*
* \param self the this pointer
* \param ifitem a pointer to the interface item that received the message
* \param msg the message
*/
typedef void (*etActorReceiveMessage)(void* self, const void* ifitem, const etMessage* msg);
/**
* method prototype for a dispatcher method
*
* \param msg the message
*
* \return <code>true</code> if the message could be delivered
*/
typedef etBool (*etDispatcherReceiveMessage)(const etMessage* msg);
/**
* prototype for the periodic call to the <code>execute()</code> method of the dispatcher
*/
typedef void (*etDispatcherExecute)(void);
#endif /* _ETMESSAGERECEIVER_H_ */
|