2 * $Id: ORTEDomainMgr.c,v 0.0.0.1 2003/09/12
4 * DEBUG: section 29 Domain manager
5 * AUTHOR: Petr Smolik petr.smolik@wo.cz
7 * ORTE - OCERA Real-Time Ethernet http://www.ocera.org/
8 * --------------------------------------------------------------------
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
24 /*****************************************************************************/
26 ORTEDomainMgrCreate(int domain, ORTEDomainProp *prop,
27 ORTEDomainAppEvents *events,Boolean suspended) {
30 debug(29,10) ("ORTEDomainMgrCreate: start\n");
32 d=ORTEDomainCreate(domain,prop,events,ORTE_TRUE);
38 ORTEDomainStart(d, /* domain */
39 ORTE_TRUE, /* recvUnicastMetarafficThread */
40 ORTE_FALSE, /* recvMulticastMetarafficThread */
41 ORTE_FALSE, /* recvUnicastUserdataThread */
42 ORTE_FALSE, /* recvMulticastUserdataThread */
43 ORTE_TRUE); /* sendThread */
46 debug(29,10) ("ORTEDomainMgrCreate: finished\n");
50 /*****************************************************************************/
52 ORTEDomainMgrDestroy(ORTEDomain *d) {
55 debug(29,10) ("ORTEDomainMgrDestroy: start\n");
57 ret=ORTEDomainDestroy(d,ORTE_TRUE);
59 debug(29,10) ("ORTEDomainMgrDestroy: finished\n");