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_CONFIGURE 1
38 #define MSG_CREATE_MTC 2
39 #define MSG_CREATE_PTC 3
40 #define MSG_KILL_PROCESS 4
43 /* Messages from HC to MC (up) */
45 #define MSG_CONFIGURE_ACK 2
46 #define MSG_CONFIGURE_NAK 3
47 #define MSG_CREATE_NAK 4
48 #define MSG_HC_READY 5
50 /* Messages from MC to TC (down) */
52 #define MSG_CREATE_ACK 1
53 #define MSG_START_ACK 2
55 #define MSG_STOP_ACK 4
56 #define MSG_KILL_ACK 5
59 #define MSG_DONE_ACK 8
60 #define MSG_KILLED_ACK 9
61 #define MSG_CANCEL_DONE 10
62 #define MSG_COMPONENT_STATUS 11
63 #define MSG_CONNECT_LISTEN 12
64 #define MSG_CONNECT 13
65 #define MSG_CONNECT_ACK 14
66 #define MSG_DISCONNECT 15
67 #define MSG_DISCONNECT_ACK 16
69 #define MSG_MAP_ACK 18
71 #define MSG_UNMAP_ACK 20
73 /* Messages from MC to MTC (down) */
75 #define MSG_EXECUTE_CONTROL 21
76 #define MSG_EXECUTE_TESTCASE 22
77 #define MSG_PTC_VERDICT 23
78 #define MSG_CONTINUE 24
79 #define MSG_EXIT_MTC 25
81 /* Messages from MC to PTC (down) */
86 /* Messages from TC to MC (up) */
88 #define MSG_CREATE_REQ 2
89 #define MSG_START_REQ 3
90 #define MSG_STOP_REQ 4
91 #define MSG_KILL_REQ 5
92 #define MSG_IS_RUNNING 6
93 #define MSG_IS_ALIVE 7
94 #define MSG_DONE_REQ 8
95 #define MSG_KILLED_REQ 9
96 #define MSG_CANCEL_DONE_ACK 10
97 #define MSG_CONNECT_REQ 11
98 #define MSG_CONNECT_LISTEN_ACK 12
99 #define MSG_CONNECTED 13
100 #define MSG_CONNECT_ERROR 14
101 #define MSG_DISCONNECT_REQ 15
102 #define MSG_DISCONNECTED 16
103 #define MSG_MAP_REQ 17
104 #define MSG_MAPPED 18
105 #define MSG_UNMAP_REQ 19
106 #define MSG_UNMAPPED 20
107 #define MSG_DEBUG_HALT_REQ 101
108 #define MSG_DEBUG_CONTINUE_REQ 102
109 #define MSG_DEBUG_BATCH 103
111 /* Messages from MTC to MC (up) */
113 #define MSG_TESTCASE_STARTED 21
114 #define MSG_TESTCASE_FINISHED 22
115 #define MSG_MTC_READY 23
117 /* Messages from PTC to MC (up) */
119 #define MSG_STOPPED 21
120 #define MSG_STOPPED_KILLED 22
121 #define MSG_KILLED 23
123 /* Messages from MC to HC or TC (down) */
125 #define MSG_DEBUG_COMMAND 100
127 /* Messages from HC or TC to MC (up) */
129 #define MSG_DEBUG_RETURN_VALUE 100