Sync with 5.3.0
[deliverable/titan.core.git] / core / Message_types.hh
CommitLineData
970ed795
EL
1///////////////////////////////////////////////////////////////////////////////
2// Copyright (c) 2000-2014 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#ifndef MESSAGE_TYPES_HH
9#define MESSAGE_TYPES_HH
10
11/* Any relation - any direction */
12
13#define MSG_ERROR 0
14
15/* Any relation - to MC (up) */
16
17#define MSG_LOG 1
18
19/* First messages - to MC (up) */
20
21/* from HCs */
22#define MSG_VERSION 2
23/* from MTC */
24#define MSG_MTC_CREATED 3
25/* from PTCs */
26#define MSG_PTC_CREATED 4
27
28/* Messages from MC to HC (down) */
29
30#define MSG_CONFIGURE 1
31#define MSG_CREATE_MTC 2
32#define MSG_CREATE_PTC 3
33#define MSG_KILL_PROCESS 4
34#define MSG_EXIT_HC 5
35
36/* Messages from HC to MC (up) */
37
38#define MSG_CONFIGURE_ACK 2
39#define MSG_CONFIGURE_NAK 3
40#define MSG_CREATE_NAK 4
41#define MSG_HC_READY 5
42
43/* Messages from MC to TC (down) */
44
45#define MSG_CREATE_ACK 1
46#define MSG_START_ACK 2
47#define MSG_STOP 3
48#define MSG_STOP_ACK 4
49#define MSG_KILL_ACK 5
50#define MSG_RUNNING 6
51#define MSG_ALIVE 7
52#define MSG_DONE_ACK 8
53#define MSG_KILLED_ACK 9
54#define MSG_CANCEL_DONE 10
55#define MSG_COMPONENT_STATUS 11
56#define MSG_CONNECT_LISTEN 12
57#define MSG_CONNECT 13
58#define MSG_CONNECT_ACK 14
59#define MSG_DISCONNECT 15
60#define MSG_DISCONNECT_ACK 16
61#define MSG_MAP 17
62#define MSG_MAP_ACK 18
63#define MSG_UNMAP 19
64#define MSG_UNMAP_ACK 20
65
66/* Messages from MC to MTC (down) */
67
68#define MSG_EXECUTE_CONTROL 21
69#define MSG_EXECUTE_TESTCASE 22
70#define MSG_PTC_VERDICT 23
71#define MSG_CONTINUE 24
72#define MSG_EXIT_MTC 25
73
74/* Messages from MC to PTC (down) */
75
76#define MSG_START 21
77#define MSG_KILL 22
78
79/* Messages from TC to MC (up) */
80
81#define MSG_CREATE_REQ 2
82#define MSG_START_REQ 3
83#define MSG_STOP_REQ 4
84#define MSG_KILL_REQ 5
85#define MSG_IS_RUNNING 6
86#define MSG_IS_ALIVE 7
87#define MSG_DONE_REQ 8
88#define MSG_KILLED_REQ 9
89#define MSG_CANCEL_DONE_ACK 10
90#define MSG_CONNECT_REQ 11
91#define MSG_CONNECT_LISTEN_ACK 12
92#define MSG_CONNECTED 13
93#define MSG_CONNECT_ERROR 14
94#define MSG_DISCONNECT_REQ 15
95#define MSG_DISCONNECTED 16
96#define MSG_MAP_REQ 17
97#define MSG_MAPPED 18
98#define MSG_UNMAP_REQ 19
99#define MSG_UNMAPPED 20
100
101/* Messages from MTC to MC (up) */
102
103#define MSG_TESTCASE_STARTED 21
104#define MSG_TESTCASE_FINISHED 22
105#define MSG_MTC_READY 23
106
107/* Messages from PTC to MC (up) */
108
109#define MSG_STOPPED 21
110#define MSG_STOPPED_KILLED 22
111#define MSG_KILLED 23
112
113#endif
This page took 0.027403 seconds and 5 git commands to generate.