]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/net/bsd_tcpip/v2_0/src/ecos/init.cxx
Initial revision
[karo-tx-redboot.git] / packages / net / bsd_tcpip / v2_0 / src / ecos / init.cxx
1 //==========================================================================
2 //
3 //      src/ecos/init.cxx
4 //
5 //==========================================================================
6 //####BSDCOPYRIGHTBEGIN####
7 //
8 // -------------------------------------------
9 //
10 // Portions of this software may have been derived from OpenBSD, 
11 // FreeBSD or other sources, and are covered by the appropriate
12 // copyright disclaimers included herein.
13 //
14 // Portions created by Red Hat are
15 // Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
16 //
17 // -------------------------------------------
18 //
19 //####BSDCOPYRIGHTEND####
20 //==========================================================================
21
22 //==========================================================================
23 //
24 //      ecos/init.cxx
25 //
26 //      Networking package initializer class
27 //
28 //==========================================================================
29 //==========================================================================
30 //#####DESCRIPTIONBEGIN####
31 //
32 // Author(s):    gthomas
33 // Contributors: gthomas
34 // Date:         2000-01-10
35 // Purpose:      
36 // Description:  
37 //              
38 //
39 //####DESCRIPTIONEND####
40 //
41 //==========================================================================
42
43
44 // Network initialization
45
46 #include <pkgconf/system.h>
47 #include <pkgconf/hal.h>
48 #include <cyg/infra/cyg_type.h>
49
50 #define NET_INIT CYGBLD_ATTRIB_INIT_AFTER(CYG_INIT_LIBC)
51
52 // This is a dummy class just so we can execute the network package 
53 // initialization at it's proper priority
54
55 externC void cyg_net_init(void);
56
57 class net_init_class {
58 public:
59     net_init_class(void) { 
60         cyg_net_init();
61     }
62 };
63
64 // And here's an instance of the class just to make the code run
65 static net_init_class _net_init NET_INIT;
66
67 externC void
68 cyg_do_net_init(void)
69 {
70 }