• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download

GUSISetupConfig()1 /**************** BEGIN GUSI CONFIGURATION ****************************
2  *
3  * GUSI Configuration section generated by GUSI Configurator
4  * last modified: Mon Oct 29 15:41:51 2001
5  *
6  * This section will be overwritten by the next run of Configurator.
7  */
8 
9 #define GUSI_SOURCE
10 #include <GUSIConfig.h>
11 #include <sys/cdefs.h>
12 
13 /* Declarations of Socket Factories */
14 
15 __BEGIN_DECLS
16 void GUSIwithInetSockets();
17 void GUSIwithLocalSockets();
18 void GUSIwithMTInetSockets();
19 void GUSIwithMTTcpSockets();
20 void GUSIwithMTUdpSockets();
21 void GUSIwithOTInetSockets();
22 void GUSIwithOTTcpSockets();
23 void GUSIwithOTUdpSockets();
24 void GUSIwithPPCSockets();
25 void GUSISetupFactories();
26 __END_DECLS
27 
28 /* Configure Socket Factories */
29 
30 void GUSISetupFactories()
31 {
32 #ifdef GUSISetupFactories_BeginHook
33 	GUSISetupFactories_BeginHook
34 #endif
35 	GUSIwithInetSockets();
36 #ifdef GUSISetupFactories_EndHook
37 	GUSISetupFactories_EndHook
38 #endif
39 }
40 
41 /* Declarations of File Devices */
42 
43 __BEGIN_DECLS
44 void GUSIwithNullSockets();
45 void GUSISetupDevices();
46 __END_DECLS
47 
48 /* Configure File Devices */
49 
50 void GUSISetupDevices()
51 {
52 #ifdef GUSISetupDevices_BeginHook
53 	GUSISetupDevices_BeginHook
54 #endif
55 	GUSIwithNullSockets();
56 #ifdef GUSISetupDevices_EndHook
57 	GUSISetupDevices_EndHook
58 #endif
59 }
60 
61 #ifndef __cplusplus
62 #error GUSISetupConfig() needs to be written in C++
63 #endif
64 
65 GUSIConfiguration::FileSuffix	sSuffices[] = {
66 	"", '????', '????'
67 };
68 
69 extern "C" void GUSISetupConfig()
70 {
71 	GUSIConfiguration * config =
72 		GUSIConfiguration::CreateInstance(GUSIConfiguration::kNoResource);
73 
74 	config->ConfigureDefaultTypeCreator('TEXT', 'CWIE');
75 	config->ConfigureSuffices(
76 		sizeof(sSuffices)/sizeof(GUSIConfiguration::FileSuffix)-1, sSuffices);
77 }
78 
79 /**************** END GUSI CONFIGURATION *************************/
80