Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 9f80de5f9dc04f8db0e20e497858843eceba6ea0 (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
50
51
/*******************************************************************************
 * 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 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * 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_ */

Back to the top