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