Debugger - Stage 3 (artf511247)
[deliverable/titan.core.git] / mctr2 / mctr / MainController.h
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 * Baji, Laszlo
10 * Balasko, Jeno
f08ff9ca 11 * Baranyi, Botond
d44e3c4f 12 * Bene, Tamas
13 * Czimbalmos, Eduard
14 * Feher, Csaba
15 * Forstner, Matyas
16 * Gecse, Roland
17 * Kovacs, Ferenc
18 * Lovassy, Arpad
19 * Raduly, Csaba
20 * Szabo, Janos Zoltan – initial implementation
21 * Zalanyi, Balazs Andor
22 *
23 ******************************************************************************/
970ed795
EL
24//
25// Description: Header file for MainController
26// Author: Janos Zoltan Szabo
27// mail: tmpjsz@eth.ericsson.se
28//
3abe9331 29// Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
30//
31#ifndef MCTR_MAINCONTROLLER_H
32#define MCTR_MAINCONTROLLER_H
33//----------------------------------------------------------------------------
34
35#include <pthread.h>
36#include <sys/types.h>
37#include <netinet/in.h>
38
39#include "../../core/Types.h"
40#include "../../common/NetworkHandler.hh"
41class Text_Buf;
42
43#include "UserInterface.h"
44
45#ifdef USE_EPOLL
46struct epoll_event;
47#else
48struct pollfd;
49#endif
50
51struct sigaction;
52
53//----------------------------------------------------------------------------
54
55namespace mctr {
56
57//----------------------------------------------------------------------------
58
59/* Type definitions */
60
61/** For representing the global state of MC */
62enum mc_state_enum {
63 MC_INACTIVE, MC_LISTENING, MC_LISTENING_CONFIGURED, MC_HC_CONNECTED,
64 MC_CONFIGURING, MC_ACTIVE, MC_SHUTDOWN, MC_CREATING_MTC, MC_READY,
65 MC_TERMINATING_MTC, MC_EXECUTING_CONTROL, MC_EXECUTING_TESTCASE,
66 MC_TERMINATING_TESTCASE, MC_PAUSED
67};
68
69/** Data structure for unknown incoming connections (before receiving
70 * the first message) */
71struct unknown_connection {
72 int fd;
73 IPAddress *ip_addr;
74 Text_Buf *text_buf;
75 unknown_connection *prev, *next;
76 bool unix_socket; // true only if the connection is through unix domain socket
77};
78
79/** Data structure for describing the component location
80 * constraints */
81struct string_set {
82 int n_elements;
83 char **elements;
84};
85
86/** Data structure for describing the component location
87 * constraints */
88struct host_group_struct {
89 char *group_name;
90 boolean has_all_hosts, has_all_components;
91 string_set host_members, assigned_components;
92};
93
94/** Possible states of a HC */
95enum hc_state_enum { HC_IDLE, HC_CONFIGURING, HC_ACTIVE, HC_OVERLOADED,
96 HC_CONFIGURING_OVERLOADED, HC_EXITING, HC_DOWN };
97
98/** Data structure for each host (and the corresponding HC) */
99struct host_struct {
100 IPAddress *ip_addr;
101 char *hostname; /**< hostname retrieved from DNS */
102 char *hostname_local; /**< hostname sent in VERSION message */
103 char *machine_type;
104 char *system_name;
105 char *system_release;
106 char *system_version;
107 boolean transport_supported[TRANSPORT_NUM];
108 char *log_source;
109 hc_state_enum hc_state;
110 int hc_fd;
111 Text_Buf *text_buf;
112 int n_components;
113 component *components;
114 /* to implement load balancing mechanisms */
115 string_set allowed_components;
116 boolean all_components_allowed;
117 boolean local_hostname_different;
118 int n_active_components;
119};
120
121struct component_struct;
122
123/** Container of test components (when a pending operation can be
124 * requested by several components) */
125struct requestor_struct {
126 int n_components;
127 union {
128 component_struct *the_component;
129 component_struct **components;
130 };
131};
132
133/** Possible states of a port connection or mapping */
134enum conn_state_enum { CONN_LISTENING, CONN_CONNECTING, CONN_CONNECTED,
135 CONN_DISCONNECTING, CONN_MAPPING, CONN_MAPPED, CONN_UNMAPPING };
136
137/** Data structure for representing a port connection */
138struct port_connection {
139 conn_state_enum conn_state;
140 transport_type_enum transport_type;
141 struct {
142 component comp_ref;
143 char *port_name;
144 port_connection *next, *prev;
145 } head, tail;
146 requestor_struct requestors;
147};
148
149
150/** Structure for timers */
151struct timer_struct {
152 double expiration;
153 union {
154 void *dummy_ptr;
155 component_struct *component_ptr;
156 } timer_argument;
157 timer_struct *prev, *next;
158};
159
160/** Possible states of a TC (MTC or PTC) */
161enum tc_state_enum { TC_INITIAL, TC_IDLE, TC_CREATE, TC_START, TC_STOP, TC_KILL,
162 TC_CONNECT, TC_DISCONNECT, TC_MAP, TC_UNMAP, TC_STOPPING, TC_EXITING,
163 TC_EXITED,
164 MTC_CONTROLPART, MTC_TESTCASE, MTC_ALL_COMPONENT_STOP,
165 MTC_ALL_COMPONENT_KILL, MTC_TERMINATING_TESTCASE, MTC_PAUSED,
166 PTC_FUNCTION, PTC_STARTING, PTC_STOPPED, PTC_KILLING, PTC_STOPPING_KILLING,
167 PTC_STALE, TC_SYSTEM };
168
169/** Data structure for each TC */
170struct component_struct {
171 component comp_ref;
172 qualified_name comp_type;
173 char *comp_name;
174 char *log_source; /**< used for console log messages. format: name\@host */
175 host_struct *comp_location;
176 tc_state_enum tc_state;
177 verdicttype local_verdict;
178 char* verdict_reason;
179 int tc_fd;
180 Text_Buf *text_buf;
181 /** Identifier of the TTCN-3 testcase or function that is currently being
182 * executed on the test component */
183 qualified_name tc_fn_name;
184 /* fields for implementing the construct 'value returning done' */
185 char *return_type;
186 int return_value_len;
187 void *return_value;
188 boolean is_alive;
189 boolean stop_requested; /**< only for 'all component.running' */
190 boolean process_killed;
191 union {
192 /** used in state TC_INITIAL */
193 struct {
194 component_struct *create_requestor;
195 char *location_str;
196 } initial;
197 /** used in state PTC_STARTING */
198 struct {
199 component_struct *start_requestor;
200 int arguments_len;
201 void *arguments_ptr;
202 requestor_struct cancel_done_sent_to;
203 } starting;
204 /** used in states TC_STOPPING, PTC_STOPPING_KILLING, PTC_KILLING */
205 struct {
206 requestor_struct stop_requestors;
207 requestor_struct kill_requestors;
208 } stopping_killing;
209 };
210 requestor_struct done_requestors;
211 requestor_struct killed_requestors;
212 requestor_struct cancel_done_sent_for;
213 timer_struct *kill_timer;
214 /* fields for registering port connections */
215 port_connection *conn_head_list, *conn_tail_list;
216 int conn_head_count, conn_tail_count;
217};
218
219/** Selector for the table of file descriptors */
220enum fd_type_enum { FD_UNUSED, FD_PIPE, FD_SERVER, FD_UNKNOWN, FD_HC, FD_TC };
221
222/** Element of the file descriptor table. The table is indexed by the
223 * fd itself. */
224struct fd_table_struct {
225 fd_type_enum fd_type;
226 union {
227 unknown_connection *unknown_ptr;
228 host_struct *host_ptr;
229 component_struct *component_ptr;
230 void *dummy_ptr;
231 };
232};
233
234/** Structure for storing the checksum of a module */
235struct module_version_info {
236 char *module_name;
237 int checksum_length;
238 unsigned char *module_checksum;
239};
240
241/** Possible reasons for waking up the MC thread from the main thread. */
242enum wakeup_reason_t { REASON_NOTHING, REASON_SHUTDOWN, REASON_MTC_KILL_TIMER };
243
016a1a93
BB
244/** Structure for storing the settings needed to initialize the debugger of a
245 * newly connected HC */
246struct debugger_settings_struct {
247 char* on_switch;
248 char* output_type;
249 char* output_file;
250 char* error_behavior;
f08ff9ca 251 char* error_batch_file;
016a1a93 252 char* fail_behavior;
f08ff9ca
BB
253 char* fail_batch_file;
254 char* global_batch_state;
255 char* global_batch_file;
016a1a93
BB
256 int nof_breakpoints;
257 struct breakpoint_struct {
258 char* module;
259 char* line;
f08ff9ca 260 char* batch_file;
016a1a93
BB
261 }* breakpoints;
262};
263
264struct debug_command_struct {
265 int command;
266 char* arguments;
267};
268
970ed795
EL
269/** The MainController class. The collection of all functions and data
270 * structures */
271class MainController {
272 /* private members */
273 static UserInterface *ui;
274 static NetworkHandler nh;
275
276 static mc_state_enum mc_state;
277 static char *mc_hostname;
278
279 static int server_fd;
280 static int server_fd_unix; // for efficient local communication
281 static boolean server_fd_disabled;
282 static void disable_server_fd();
283 static void enable_server_fd();
284
285 static pthread_mutex_t mutex;
286 static void lock();
287 static void unlock();
288
289#ifdef USE_EPOLL
290 static const int EPOLL_SIZE_HINT = 1000;
291 static const int EPOLL_MAX_EVENTS = 250;
292 static epoll_event *epoll_events;
293 static int epfd;
294#else
295 static unsigned int nfds, new_nfds;
296 static struct pollfd *ufds, *new_ufds;
297 static boolean pollfds_modified;
298 static void update_pollfds();
299#endif
300 static void add_poll_fd(int fd);
301 static void remove_poll_fd(int fd);
302
303 static int fd_table_size;
304 static fd_table_struct *fd_table;
305 static void add_fd_to_table(int fd);
306 static void remove_fd_from_table(int fd);
307
308 static void set_close_on_exec(int fd);
309
310 static unknown_connection *unknown_head, *unknown_tail;
311 static unknown_connection *new_unknown_connection(bool unix_socket);
312 static void delete_unknown_connection(unknown_connection *conn);
313 static void close_unknown_connection(unknown_connection *conn);
314
315 static void init_string_set(string_set *set);
316 static void free_string_set(string_set *set);
317 static void add_string_to_set(string_set *set, const char *str);
318 static void remove_string_from_set(string_set *set, const char *str);
319 static boolean set_has_string(const string_set *set, const char *str);
320 static const char *get_string_from_set(const string_set *set, int index);
321
322 static int n_host_groups;
323 static host_group_struct *host_groups;
324 static string_set assigned_components;
325 static boolean all_components_assigned;
326 static host_group_struct *add_host_group(const char *group_name);
327 static host_group_struct *lookup_host_group(const char *group_name);
328 static boolean is_similar_hostname(const char *host1, const char *host2);
329 static boolean host_has_name(const host_struct *host, const char *name);
330 static boolean member_of_group(const host_struct *host,
331 const host_group_struct *group);
332 static void add_allowed_components(host_struct *host);
333 static host_struct *choose_ptc_location(const char *component_type,
334 const char *component_name, const char *component_location);
335
336 static int n_hosts;
337 static host_struct **hosts;
338 static char *config_str;
016a1a93
BB
339 static debugger_settings_struct debugger_settings;
340 static debug_command_struct last_debug_command;
970ed795
EL
341 static host_struct *add_new_host(unknown_connection *conn);
342 static void close_hc_connection(host_struct *hc);
343 static boolean is_hc_in_state(hc_state_enum checked_state);
344 static boolean all_hc_in_state(hc_state_enum checked_state);
345 static void configure_host(host_struct *host, boolean should_notify);
346 static void check_all_hc_configured();
347 static void add_component_to_host(host_struct *host,
348 component_struct *comp);
349 static void remove_component_from_host(component_struct *comp);
350
351 static boolean version_known;
352 static int n_modules;
353 static module_version_info *modules;
354 static boolean check_version(unknown_connection *conn);
355
356 static int n_components, n_active_ptcs, max_ptcs;
357 static component_struct **components;
358 static component_struct *mtc, *system;
016a1a93 359 static const component_struct* debugger_active_tc;
970ed795
EL
360 static component next_comp_ref, tc_first_comp_ref;
361 static boolean any_component_done_requested, any_component_done_sent,
362 all_component_done_requested, any_component_killed_requested,
363 all_component_killed_requested;
364 static void add_component(component_struct *comp);
365 static component_struct *lookup_component(component comp_ref);
366 static void destroy_all_components();
367 static void close_tc_connection(component_struct *comp);
368 static boolean stop_after_tc, stop_requested;
369 static boolean ready_to_finish_testcase();
370 static void finish_testcase();
371 static boolean message_expected(component_struct *from,
372 const char *message_name);
373 static boolean request_allowed(component_struct *from,
374 const char *message_name);
375 static boolean valid_endpoint(component component_reference,
376 boolean new_connection, component_struct *requestor,
377 const char *operation);
378 static void destroy_connection(port_connection *conn, component_struct *tc);
379 static void destroy_mapping(port_connection *conn);
380 static boolean stop_all_components();
381 static void check_all_component_stop();
382 static void send_stop_ack_to_requestors(component_struct *tc);
383 static boolean kill_all_components(boolean testcase_ends);
384 static void check_all_component_kill();
385 static void send_kill_ack_to_requestors(component_struct *tc);
386 static void send_component_status_to_requestor(component_struct *tc,
387 component_struct *requestor, boolean done_status,
388 boolean killed_status);
389 static void component_stopped(component_struct *tc);
390 static void component_terminated(component_struct *tc);
391 static void done_cancelled(component_struct *from,
392 component_struct *started_tc);
393 static void start_kill_timer(component_struct *tc);
394
395 static boolean component_is_alive(component_struct *tc);
396 static boolean component_is_running(component_struct *tc);
397 static boolean component_is_done(component_struct *tc);
398 static boolean is_any_component_alive();
399 static boolean is_all_component_alive();
400 static boolean is_any_component_running();
401 static boolean is_all_component_running();
402 static boolean is_any_component_done();
403
404 static void init_connections(component_struct *tc);
405 static void add_connection(port_connection *c);
406 static void remove_connection(port_connection *c);
407 static port_connection *find_connection(component head_comp,
408 const char *head_port, component tail_comp, const char *tail_port);
409 static void remove_all_connections(component head_or_tail);
410 static transport_type_enum choose_port_connection_transport(
411 component head_comp, component tail_comp);
412 static void send_connect_ack_to_requestors(port_connection *conn);
413 static void send_error_to_connect_requestors(port_connection *conn,
414 const char *fmt, ...)
415 __attribute__ ((__format__ (__printf__, 2, 3)));
416 static void send_disconnect_to_server(port_connection *conn);
417 static void send_disconnect_ack_to_requestors(port_connection *conn);
418
419 static void init_requestors(requestor_struct *reqs, component_struct *tc);
420 static void add_requestor(requestor_struct *reqs, component_struct *tc);
421 static void remove_requestor(requestor_struct *reqs, component_struct *tc);
422 static boolean has_requestor(const requestor_struct *reqs,
423 component_struct *tc);
424 static component_struct *get_requestor(const requestor_struct *reqs,
425 int index);
426 static void free_requestors(requestor_struct *reqs);
427
428 static void init_qualified_name(qualified_name *name);
429 static void free_qualified_name(qualified_name *name);
430
431 static double kill_timer;
432 static double time_now();
433 static timer_struct *timer_head, *timer_tail;
434 static void register_timer(timer_struct *timer);
435 static void cancel_timer(timer_struct *timer);
436 static int get_poll_timeout();
437 static void handle_expired_timers();
438 static void handle_kill_timer(timer_struct *timer);
439
440 // Custom signal handling for termination signals to remove temporary
441 // files /tmp/ttcn3-mctr-*. Related to HP67376.
442 static struct sigaction new_action, old_action;
443 static void register_termination_handlers();
444 static void termination_handler(int signum);
f08ff9ca
BB
445
446 static void execute_batch_file(const char* file_name);
970ed795
EL
447
448public:
449 static void error(const char *fmt, ...)
450 __attribute__ ((__format__ (__printf__, 1, 2)));
451private:
452 static void notify(const char *fmt, ...)
453 __attribute__ ((__format__ (__printf__, 1, 2)));
454 static void notify(const struct timeval *timestamp, const char *source,
455 int severity, const char *message);
456 static void status_change();
457
458 static void fatal_error(const char *fmt, ...)
459 __attribute__ ((__format__ (__printf__, 1, 2), __noreturn__));
460
461 static void *thread_main(void *arg);
462 static void dispatch_socket_event(int fd);
463 static int pipe_fd[2];
464 static wakeup_reason_t wakeup_reason;
465 static void wakeup_thread(wakeup_reason_t reason);
466
467 static void handle_pipe();
468 static void handle_incoming_connection(int p_serverfd);
469 static int recv_to_buffer(int fd, Text_Buf& text_buf,
470 boolean recv_from_socket);
471 static void handle_unknown_data(unknown_connection *conn);
472 static void handle_hc_data(host_struct *hc, boolean recv_from_socket);
473 static void handle_tc_data(component_struct *tc, boolean recv_from_socket);
474
475 static void unlink_unix_socket(int socket_fd);
476
477 static void shutdown_server();
478 static void perform_shutdown();
479
480 static void clean_up();
481
482 static const char *get_host_name(const struct in_addr *ip_address);
483 static boolean get_ip_address(struct in_addr *ip_address,
484 const char *host_name);
485
486 /* Messages to HCs */
487 static void send_configure(host_struct *hc, const char *config_file);
488 static void send_exit_hc(host_struct *hc);
489 static void send_create_mtc(host_struct *hc);
490 static void send_create_ptc(host_struct *hc, component component_reference,
491 const qualified_name& component_type, const char *component_name,
492 boolean is_alive, const qualified_name& current_testcase);
493 static void send_kill_process(host_struct *hc,
494 component component_reference);
495
496 /* Messages to TCs */
497 static void send_create_ack(component_struct *tc,
498 component component_reference);
499 static void send_start_ack(component_struct *tc);
500 static void send_stop(component_struct *tc);
501 static void send_stop_ack(component_struct *tc);
502 static void send_kill_ack(component_struct *tc);
503 static void send_running(component_struct *tc, boolean answer);
504 static void send_alive(component_struct *tc, boolean answer);
505 static void send_done_ack(component_struct *tc, boolean answer,
506 const char *return_type, int return_value_len,
507 const void *return_value);
508 static void send_killed_ack(component_struct *tc, boolean answer);
509 static void send_connect_listen(component_struct *tc,
510 const char *local_port, component remote_comp,
511 const char *remote_comp_name, const char *remote_port,
512 transport_type_enum transport_type);
513 static void send_connect(component_struct *tc,
514 const char *local_port, component remote_comp,
515 const char *remote_comp_name, const char *remote_port,
516 transport_type_enum transport_type, int remote_address_len,
517 const void *remote_address);
518 static void send_connect_ack(component_struct *tc);
519 static void send_disconnect(component_struct *tc,
520 const char *local_port, component remote_comp, const char *remote_port);
521 static void send_disconnect_ack(component_struct *tc);
522 static void send_map(component_struct *tc,
523 const char *local_port, const char *system_port);
524 static void send_map_ack(component_struct *tc);
525 static void send_unmap(component_struct *tc,
526 const char *local_port, const char *system_port);
527 static void send_unmap_ack(component_struct *tc);
016a1a93
BB
528 static void send_debug_command(int fd, int commandID, const char* arguments);
529 static void send_debug_setup(host_struct *hc);
970ed795
EL
530
531 /* Messages to MTC */
532 static void send_cancel_done_mtc(component component_reference,
533 boolean cancel_any);
534 static void send_component_status_mtc(component component_reference,
535 boolean is_done, boolean is_killed, boolean is_any_done,
536 boolean is_all_done, boolean is_any_killed, boolean is_all_killed,
537 const char *return_type, int return_value_len,
538 const void *return_value);
539 static void send_execute_control(const char *module_name);
540 static void send_execute_testcase(const char *module_name,
541 const char *testcase_name);
542 static void send_ptc_verdict(boolean continue_execution);
543 static void send_continue();
544 static void send_exit_mtc();
545
546 /** Messages to PTCs */
547 static void send_cancel_done_ptc(component_struct *tc,
548 component component_reference);
549 static void send_component_status_ptc(component_struct *tc,
550 component component_reference,
551 boolean is_done, boolean is_killed, const char *return_type,
552 int return_value_len, const void *return_value);
553 static void send_start(component_struct *tc,
554 const qualified_name& function_name, int arg_len, const void *arg_ptr);
555 static void send_kill(component_struct *tc);
556
557 static void send_error(int fd, const char *fmt, ...)
558 __attribute__ ((__format__ (__printf__, 2, 3)));
559 static void send_error_str(int fd, const char *reason);
560 static void send_message(int fd, Text_Buf& text_buf);
561
562 /* Incoming messages on unknown connections (generic and first messages) */
563 static void process_error(unknown_connection *conn);
564 static void process_log(unknown_connection *conn);
565 static void process_version(unknown_connection *conn);
566 static void process_mtc_created(unknown_connection *conn);
567 static void process_ptc_created(unknown_connection *conn);
568
569 /* Incoming messages from HCs */
570 static void process_error(host_struct *hc);
571 static void process_log(host_struct *hc);
572 static void process_configure_ack(host_struct *hc);
573 static void process_configure_nak(host_struct *hc);
574 static void process_create_nak(host_struct *hc);
575 static void process_hc_ready(host_struct *hc);
576
577 /* Incoming messages from TCs */
578 static void process_error(component_struct *tc);
579 static void process_log(component_struct *tc);
580 static void process_create_req(component_struct *tc);
581 static void process_start_req(component_struct *tc, int message_end);
582 static void process_stop_req(component_struct *tc);
583 static void process_kill_req(component_struct *tc);
584 static void process_is_running(component_struct *tc);
585 static void process_is_alive(component_struct *tc);
586 static void process_done_req(component_struct *tc);
587 static void process_killed_req(component_struct *tc);
588 static void process_cancel_done_ack(component_struct *tc);
589 static void process_connect_req(component_struct *tc);
590 static void process_connect_listen_ack(component_struct *tc, int message_end);
591 static void process_connected(component_struct *tc);
592 static void process_connect_error(component_struct *tc);
593 static void process_disconnect_req(component_struct *tc);
594 static void process_disconnected(component_struct *tc);
595 static void process_map_req(component_struct *tc);
596 static void process_mapped(component_struct *tc);
597 static void process_unmap_req(component_struct *tc);
598 static void process_unmapped(component_struct *tc);
f08ff9ca
BB
599 static void process_debug_return_value(Text_Buf& text_buf, char* log_source,
600 int msg_end, bool from_mtc);
601 static void process_debug_broadcast_req(component_struct *tc, int commandID);
602 static void process_debug_batch(component_struct *tc);
970ed795
EL
603
604 /* Incoming messages from MTC */
605 static void process_testcase_started();
606 static void process_testcase_finished();
607 static void process_mtc_ready();
608
609 /* Incoming messages from PTCs */
610 static void process_stopped(component_struct *tc, int message_end);
611 static void process_stopped_killed(component_struct *tc, int message_end);
612 static void process_killed(component_struct *tc);
613
614public:
615 static void initialize(UserInterface& par_ui, int par_max_ptcs);
616 static void terminate();
617
618 static void add_host(const char *group_name, const char *host_name);
619 static void assign_component(const char *host_or_group,
620 const char *component_id);
621 static void destroy_host_groups();
622
623 static void set_kill_timer(double timer_val);
624
625 static unsigned short start_session(const char *local_address,
626 unsigned short tcp_port, bool unix_sockets_enabled);
627 static void shutdown_session();
628
629 static void configure(const char *config_file);
630
631 static void create_mtc(int host_index);
632 static void exit_mtc();
633
634 static void execute_control(const char *module_name);
635 static void execute_testcase(const char *module_name,
636 const char *testcase_name);
637 static void stop_after_testcase(boolean new_state);
638 static void continue_testcase();
639 static void stop_execution();
016a1a93
BB
640
641 static void debug_command(int commandID, char* arguments);
970ed795
EL
642
643 static mc_state_enum get_state();
644 static boolean get_stop_after_testcase();
645
646 static int get_nof_hosts();
647 static host_struct *get_host_data(int host_index);
648 static component_struct *get_component_data(int component_reference);
649 static void release_data();
650
651 static const char *get_mc_state_name(mc_state_enum state);
652 static const char *get_hc_state_name(hc_state_enum state);
653 static const char *get_tc_state_name(tc_state_enum state);
654 static const char *get_transport_name(transport_type_enum transport);
655};
656
657//----------------------------------------------------------------------------
658
659} /* namespace mctr */
660
661//----------------------------------------------------------------------------
662#endif // MCTR_MAINCONTROLLER_H
663
664// Local Variables:
665// mode: C++
666// indent-tabs-mode: nil
667// c-basic-offset: 2
668// End:
This page took 0.078334 seconds and 5 git commands to generate.