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
12 * Szabo, Janos Zoltan – initial implementation
14 ******************************************************************************/
15 #ifndef MESSAGE_TYPES_HH
16 #define MESSAGE_TYPES_HH
18 /* Any relation - any direction */
22 /* Any relation - to MC (up) */
26 /* First messages - to MC (up) */
31 #define MSG_MTC_CREATED 3
33 #define MSG_PTC_CREATED 4
35 /* Messages from MC to HC (down) */
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_CREATE_NAK 4
45 #define MSG_HC_READY 5
47 /* Messages from MC to TC (down) */
49 #define MSG_CREATE_ACK 1
50 #define MSG_START_ACK 2
52 #define MSG_STOP_ACK 4
53 #define MSG_KILL_ACK 5
56 #define MSG_DONE_ACK 8
57 #define MSG_KILLED_ACK 9
58 #define MSG_CANCEL_DONE 10
59 #define MSG_COMPONENT_STATUS 11
60 #define MSG_CONNECT_LISTEN 12
61 #define MSG_CONNECT 13
62 #define MSG_CONNECT_ACK 14
63 #define MSG_DISCONNECT 15
64 #define MSG_DISCONNECT_ACK 16
66 #define MSG_MAP_ACK 18
68 #define MSG_UNMAP_ACK 20
70 /* Messages from MC to MTC (down) */
72 #define MSG_EXECUTE_CONTROL 21
73 #define MSG_EXECUTE_TESTCASE 22
74 #define MSG_PTC_VERDICT 23
75 #define MSG_CONTINUE 24
76 #define MSG_EXIT_MTC 25
78 /* Messages from MC to PTC (down) */
83 /* Messages from TC to MC (up) */
85 #define MSG_CREATE_REQ 2
86 #define MSG_START_REQ 3
87 #define MSG_STOP_REQ 4
88 #define MSG_KILL_REQ 5
89 #define MSG_IS_RUNNING 6
90 #define MSG_IS_ALIVE 7
91 #define MSG_DONE_REQ 8
92 #define MSG_KILLED_REQ 9
93 #define MSG_CANCEL_DONE_ACK 10
94 #define MSG_CONNECT_REQ 11
95 #define MSG_CONNECT_LISTEN_ACK 12
96 #define MSG_CONNECTED 13
97 #define MSG_CONNECT_ERROR 14
98 #define MSG_DISCONNECT_REQ 15
99 #define MSG_DISCONNECTED 16
100 #define MSG_MAP_REQ 17
101 #define MSG_MAPPED 18
102 #define MSG_UNMAP_REQ 19
103 #define MSG_UNMAPPED 20
104 #define MSG_DEBUG_HALT_REQ 101
105 #define MSG_DEBUG_CONTINUE_REQ 102
106 #define MSG_DEBUG_BATCH 103
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
128 /* Messages from MC to HC or MTC (down) */
130 #define MSG_CONFIGURE 200
132 /* Messages from HC or MTC to MC (up) */
134 #define MSG_CONFIGURE_ACK 200
135 #define MSG_CONFIGURE_NAK 201