Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: cc3bbdb9ad29c736bc2d662d8de103ebe5858b30 (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
/*******************************************************************************
 * Copyright (c) 2011 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 etMessage.h
 *
 * the message "base class" that is used for asynchronous messages
 *
 * \author Thomas Schuetz
 */

#ifndef _ETMESSAGE_H_
#define _ETMESSAGE_H_

#include "etDatatypes.h"

ET_EXTERN_C_BEGIN

/**
 * the message structure
 */
typedef struct etMessage {
	struct etMessage* next;			/**< pointer to the next message or <code>NULL</code> (single linked list) */
	etInt16 address;				/**< the destination address */
	etInt16 evtID;					/**< the event id */
} etMessage;

/**
 * initializes the message fields ("constructor")
 *
 * \param self the this pointer
 */
void etMessage_init(etMessage* self);

ET_EXTERN_C_END

#endif /* _ETMESSAGE_H_ */

Back to the top