1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
11 * Szabo, Janos Zoltan – initial implementation
13 ******************************************************************************/
14 #ifndef MESSAGE_TYPES_HH
15 #define MESSAGE_TYPES_HH
17 /* Any relation - any direction */
21 /* Any relation - to MC (up) */
25 /* First messages - to MC (up) */
30 #define MSG_MTC_CREATED 3
32 #define MSG_PTC_CREATED 4
34 /* Messages from MC to HC (down) */
36 #define MSG_CONFIGURE 1
37 #define MSG_CREATE_MTC 2
38 #define MSG_CREATE_PTC 3
39 #define MSG_KILL_PROCESS 4
42 /* Messages from HC to MC (up) */
44 #define MSG_CONFIGURE_ACK 2
45 #define MSG_CONFIGURE_NAK 3
46 #define MSG_CREATE_NAK 4
47 #define MSG_HC_READY 5
49 /* Messages from MC to TC (down) */
51 #define MSG_CREATE_ACK 1
52 #define MSG_START_ACK 2
54 #define MSG_STOP_ACK 4
55 #define MSG_KILL_ACK 5
58 #define MSG_DONE_ACK 8
59 #define MSG_KILLED_ACK 9
60 #define MSG_CANCEL_DONE 10
61 #define MSG_COMPONENT_STATUS 11
62 #define MSG_CONNECT_LISTEN 12
63 #define MSG_CONNECT 13
64 #define MSG_CONNECT_ACK 14
65 #define MSG_DISCONNECT 15
66 #define MSG_DISCONNECT_ACK 16
68 #define MSG_MAP_ACK 18
70 #define MSG_UNMAP_ACK 20
72 /* Messages from MC to MTC (down) */
74 #define MSG_EXECUTE_CONTROL 21
75 #define MSG_EXECUTE_TESTCASE 22
76 #define MSG_PTC_VERDICT 23
77 #define MSG_CONTINUE 24
78 #define MSG_EXIT_MTC 25
80 /* Messages from MC to PTC (down) */
85 /* Messages from TC to MC (up) */
87 #define MSG_CREATE_REQ 2
88 #define MSG_START_REQ 3
89 #define MSG_STOP_REQ 4
90 #define MSG_KILL_REQ 5
91 #define MSG_IS_RUNNING 6
92 #define MSG_IS_ALIVE 7
93 #define MSG_DONE_REQ 8
94 #define MSG_KILLED_REQ 9
95 #define MSG_CANCEL_DONE_ACK 10
96 #define MSG_CONNECT_REQ 11
97 #define MSG_CONNECT_LISTEN_ACK 12
98 #define MSG_CONNECTED 13
99 #define MSG_CONNECT_ERROR 14
100 #define MSG_DISCONNECT_REQ 15
101 #define MSG_DISCONNECTED 16
102 #define MSG_MAP_REQ 17
103 #define MSG_MAPPED 18
104 #define MSG_UNMAP_REQ 19
105 #define MSG_UNMAPPED 20
106 #define MSG_DEBUG_HALT_REQ 101
108 /* Messages from MTC to MC (up) */
110 #define MSG_TESTCASE_STARTED 21
111 #define MSG_TESTCASE_FINISHED 22
112 #define MSG_MTC_READY 23
114 /* Messages from PTC to MC (up) */
116 #define MSG_STOPPED 21
117 #define MSG_STOPPED_KILLED 22
118 #define MSG_KILLED 23
120 /* Messages from MC to HC or TC (down) */
122 #define MSG_DEBUG_COMMAND 100
124 /* Messages from HC or TC to MC (up) */
126 #define MSG_DEBUG_RETURN_VALUE 100