1 /*
2                                   NETWIB
3                              Network library
4                 Copyright(c) 1999-2010 Laurent Constantin
5                                   -----
6 
7   Main server   : http://www.laurentconstantin.com/
8   Backup server : http://laurentconstantin.free.fr/
9   [my current email address is on the web servers]
10 
11                                   -----
12   This file is part of Netwib.
13 
14   Netwib is free software: you can redistribute it and/or modify
15   it under the terms of the GNU General Public License version 3
16   as published by the Free Software Foundation.
17 
18   Netwib is distributed in the hope that it will be useful,
19   but WITHOUT ANY WARRANTY; without even the implied warranty of
20   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21   GNU General Public License for more details (http://www.gnu.org/).
22 
23 ------------------------------------------------------------------------
24 */
25 
26 #include <netwib/inc/maininc.h>
27 
28 /*-------------------------------------------------------------*/
29 #include "priv/mutex.c"
30 #include "priv/errmsg.c"
31 #include "priv/program_exit.c"
32 #include "priv/glovars.c"
33 #include "priv/rand.c"
34 #include "priv/fd.c"
35 #include "priv/stream.c"
36 #include "priv/err.c"
37 #include "priv/notify.c"
38 #include "priv/stat.c"
39 #include "priv/dir.c"
40 #include "priv/io.c"
41 #include "priv/cmdline.c"
42 #include "priv/time.c"
43 #include "priv/pause.c"
44 #include "priv/kbd.c"
45 
46 /*-------------------------------------------------------------*/
47 #if defined NETWIBDEF_SYSNAME_Unix
48  #include "priv/right.c"
49 #elif defined NETWIBDEF_SYSNAME_Windows
50  #include "priv/handle.c"
51  #include "priv/winsock.c"
52  #include "priv/dll.c"
53  #include "priv/dll_iphlpapi.c"
54  #include "priv/dll_winsock2.c"
55  #if NETWIBDEF_HAVEFUNC_WINDOWS_SNMP == 1
56   #include "priv/dll_snmp.c"
57  #endif
58  #include "priv/dll_kernel32.c"
59  #include "priv/dll_packet.c"
60  #include "priv/dll_winpcap.c"
61  #if 0
62   /* currently unused */
63   #include "priv/dll_rasapi32.c"
64   #include "priv/winreg.c"
65  #endif
66  #include "priv/cs.c"
67 #else
68  #error "Unknown value for NETWIBDEF_SYSNAME"
69 #endif
70 
71 /*-------------------------------------------------------------*/
72 #if defined NETWIBDEF_SYSNAME_Solaris
73  #include "priv/dlpi.c"
74 #endif
75 
76 /*-------------------------------------------------------------*/
77 #if defined NETWIBDEF_SYSNAME_Unix
78   /* this function is not needed */
79 #elif defined NETWIBDEF_SYSNAME_Windows
DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpReserved)80 BOOL WINAPI DllMain(HINSTANCE hinstDLL,
81                     DWORD fdwReason,
82                     LPVOID lpReserved)
83 {
84   switch (fdwReason) {
85     case DLL_PROCESS_ATTACH:
86       break;
87     case DLL_THREAD_ATTACH:
88       break;
89     case DLL_THREAD_DETACH:
90       break;
91     case DLL_PROCESS_DETACH:
92       break;
93   }
94   hinstDLL = hinstDLL; /* for compiler warning */
95   lpReserved = lpReserved; /* for compiler warning */
96   return TRUE;
97 }
98 #else
99  #error "Unknown value for NETWIBDEF_SYSNAME"
100 #endif
101