2 * $Id: ORTEDomainMgr.c,v 0.0.0.1 2003/09/12
4 * DEBUG: section 29 Domain manager
6 * -------------------------------------------------------------------
8 * Open Real-Time Ethernet
10 * Copyright (C) 2001-2006
11 * Department of Control Engineering FEE CTU Prague, Czech Republic
12 * http://dce.felk.cvut.cz
13 * http://www.ocera.org
15 * Author: Petr Smolik petr@smoliku.cz
17 * Project Responsible: Zdenek Hanzalek
18 * --------------------------------------------------------------------
20 * This program is free software; you can redistribute it and/or modify
21 * it under the terms of the GNU General Public License as published by
22 * the Free Software Foundation; either version 2 of the License, or
23 * (at your option) any later version.
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 * GNU General Public License for more details.
34 /*****************************************************************************/
36 ORTEDomainMgrCreate(int domain, ORTEDomainProp *prop,
37 ORTEDomainAppEvents *events, Boolean suspended)
41 debug(29, 10) ("ORTEDomainMgrCreate: start\n");
43 d = ORTEDomainCreate(domain, prop, events, ORTE_TRUE);
49 ORTEDomainStart(d, /* domain */
50 ORTE_TRUE, /* recvUnicastMetarafficThread */
51 ORTE_FALSE, /* recvMulticastMetarafficThread */
52 ORTE_FALSE, /* recvUnicastUserdataThread */
53 ORTE_FALSE, /* recvMulticastUserdataThread */
54 ORTE_TRUE); /* sendThread */
57 debug(29, 10) ("ORTEDomainMgrCreate: finished\n");
61 /*****************************************************************************/
63 ORTEDomainMgrDestroy(ORTEDomain *d)
67 debug(29, 10) ("ORTEDomainMgrDestroy: start\n");
69 ret = ORTEDomainDestroy(d, ORTE_TRUE);
71 debug(29, 10) ("ORTEDomainMgrDestroy: finished\n");