Commit | Line | Data |
---|---|---|
d44e3c4f | 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 | |
7 | * | |
8 | * Contributors: | |
9 | * Balasko, Jeno | |
f08ff9ca | 10 | * Baranyi, Botond |
d44e3c4f | 11 | * Forstner, Matyas |
12 | * Szabo, Janos Zoltan – initial implementation | |
13 | * | |
14 | ******************************************************************************/ | |
970ed795 EL |
15 | #ifndef MESSAGE_TYPES_HH |
16 | #define MESSAGE_TYPES_HH | |
17 | ||
18 | /* Any relation - any direction */ | |
19 | ||
20 | #define MSG_ERROR 0 | |
21 | ||
22 | /* Any relation - to MC (up) */ | |
23 | ||
24 | #define MSG_LOG 1 | |
25 | ||
26 | /* First messages - to MC (up) */ | |
27 | ||
28 | /* from HCs */ | |
29 | #define MSG_VERSION 2 | |
30 | /* from MTC */ | |
31 | #define MSG_MTC_CREATED 3 | |
32 | /* from PTCs */ | |
33 | #define MSG_PTC_CREATED 4 | |
34 | ||
35 | /* Messages from MC to HC (down) */ | |
36 | ||
37 | #define MSG_CONFIGURE 1 | |
38 | #define MSG_CREATE_MTC 2 | |
39 | #define MSG_CREATE_PTC 3 | |
40 | #define MSG_KILL_PROCESS 4 | |
41 | #define MSG_EXIT_HC 5 | |
42 | ||
43 | /* Messages from HC to MC (up) */ | |
44 | ||
45 | #define MSG_CONFIGURE_ACK 2 | |
46 | #define MSG_CONFIGURE_NAK 3 | |
47 | #define MSG_CREATE_NAK 4 | |
48 | #define MSG_HC_READY 5 | |
49 | ||
50 | /* Messages from MC to TC (down) */ | |
51 | ||
52 | #define MSG_CREATE_ACK 1 | |
53 | #define MSG_START_ACK 2 | |
54 | #define MSG_STOP 3 | |
55 | #define MSG_STOP_ACK 4 | |
56 | #define MSG_KILL_ACK 5 | |
57 | #define MSG_RUNNING 6 | |
58 | #define MSG_ALIVE 7 | |
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 | |
68 | #define MSG_MAP 17 | |
69 | #define MSG_MAP_ACK 18 | |
70 | #define MSG_UNMAP 19 | |
71 | #define MSG_UNMAP_ACK 20 | |
72 | ||
73 | /* Messages from MC to MTC (down) */ | |
74 | ||
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 | |
80 | ||
81 | /* Messages from MC to PTC (down) */ | |
82 | ||
83 | #define MSG_START 21 | |
84 | #define MSG_KILL 22 | |
85 | ||
86 | /* Messages from TC to MC (up) */ | |
87 | ||
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 | |
016a1a93 | 107 | #define MSG_DEBUG_HALT_REQ 101 |
f08ff9ca BB |
108 | #define MSG_DEBUG_CONTINUE_REQ 102 |
109 | #define MSG_DEBUG_BATCH 103 | |
970ed795 EL |
110 | |
111 | /* Messages from MTC to MC (up) */ | |
112 | ||
113 | #define MSG_TESTCASE_STARTED 21 | |
114 | #define MSG_TESTCASE_FINISHED 22 | |
115 | #define MSG_MTC_READY 23 | |
116 | ||
117 | /* Messages from PTC to MC (up) */ | |
118 | ||
119 | #define MSG_STOPPED 21 | |
120 | #define MSG_STOPPED_KILLED 22 | |
121 | #define MSG_KILLED 23 | |
122 | ||
016a1a93 BB |
123 | /* Messages from MC to HC or TC (down) */ |
124 | ||
125 | #define MSG_DEBUG_COMMAND 100 | |
126 | ||
127 | /* Messages from HC or TC to MC (up) */ | |
128 | ||
129 | #define MSG_DEBUG_RETURN_VALUE 100 | |
130 | ||
970ed795 | 131 | #endif |