implemented the Main Controller's 'reconf' command (artf468488)
[deliverable/titan.core.git] / core / Message_types.hh
CommitLineData
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
970ed795
EL
37#define MSG_CREATE_MTC 2
38#define MSG_CREATE_PTC 3
39#define MSG_KILL_PROCESS 4
40#define MSG_EXIT_HC 5
41
42/* Messages from HC to MC (up) */
43
970ed795
EL
44#define MSG_CREATE_NAK 4
45#define MSG_HC_READY 5
46
47/* Messages from MC to TC (down) */
48
49#define MSG_CREATE_ACK 1
50#define MSG_START_ACK 2
51#define MSG_STOP 3
52#define MSG_STOP_ACK 4
53#define MSG_KILL_ACK 5
54#define MSG_RUNNING 6
55#define MSG_ALIVE 7
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
65#define MSG_MAP 17
66#define MSG_MAP_ACK 18
67#define MSG_UNMAP 19
68#define MSG_UNMAP_ACK 20
69
70/* Messages from MC to MTC (down) */
71
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
77
78/* Messages from MC to PTC (down) */
79
80#define MSG_START 21
81#define MSG_KILL 22
82
83/* Messages from TC to MC (up) */
84
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
016a1a93 104#define MSG_DEBUG_HALT_REQ 101
f08ff9ca
BB
105#define MSG_DEBUG_CONTINUE_REQ 102
106#define MSG_DEBUG_BATCH 103
970ed795
EL
107
108/* Messages from MTC to MC (up) */
109
110#define MSG_TESTCASE_STARTED 21
111#define MSG_TESTCASE_FINISHED 22
112#define MSG_MTC_READY 23
113
114/* Messages from PTC to MC (up) */
115
116#define MSG_STOPPED 21
117#define MSG_STOPPED_KILLED 22
118#define MSG_KILLED 23
119
016a1a93
BB
120/* Messages from MC to HC or TC (down) */
121
122#define MSG_DEBUG_COMMAND 100
123
124/* Messages from HC or TC to MC (up) */
125
126#define MSG_DEBUG_RETURN_VALUE 100
127
b0caada2
BB
128/* Messages from MC to HC or MTC (down) */
129
130#define MSG_CONFIGURE 200
131
132/* Messages from HC or MTC to MC (up) */
133
134#define MSG_CONFIGURE_ACK 200
135#define MSG_CONFIGURE_NAK 201
136
970ed795 137#endif
This page took 0.038562 seconds and 5 git commands to generate.