1 /* $NCDId: @(#)globals.c,v 1.2 1994/05/02 17:42:25 greg Exp $ */ 2 /* 3 * $XConsortium: globals.c,v 1.13 91/07/12 15:54:41 gildea Exp $ 4 * 5 * Copyright 1989 Massachusetts Institute of Technology 6 * 7 */ 8 9 /* 10 Permission to use, copy, modify, distribute, and sell this software and its 11 documentation for any purpose is hereby granted without fee, provided that 12 the above copyright notice appear in all copies and that both that 13 copyright notice and this permission notice appear in supporting 14 documentation, and that the name of M.I.T. not be used in advertising or 15 publicity pertaining to distribution of the software without specific, 16 written prior permission. M.I.T. makes no representations about the 17 suitability of this software for any purpose. It is provided "as is" 18 without express or implied warranty. 19 */ 20 21 /* 22 * 23 * Global data 24 * 25 * This file should contain only those objects which must be predefined. 26 */ 27 #include <audio/Alibint.h> 28 29 30 #ifdef STREAMSCONN 31 32 33 /* The following are how the Austream connections are used: */ 34 /* 1) Local connections over pseudo-tty ports. */ 35 /* 2) SVR4 local connections using named streams or SVR3.2 */ 36 /* local connections using streams. */ 37 /* 3) SVR4 stream pipe code. This code is proprietary and */ 38 /* the actual code is not included in the MIT distribution.*/ 39 /* 4) remote connections using tcp */ 40 /* 5) remote connections using StarLan */ 41 42 /* 43 * descriptor block for streams connections 44 */ 45 #include <stdio.h> 46 #include "Astreams.h" 47 48 char _AusTypeOfStream[100] = { 0 }; 49 50 #ifdef SVR4 51 extern int _AusSetupSpStream(); 52 extern int _AusSetupNamedStream(); 53 #endif 54 extern int _AusSetupLocalStream(); 55 extern int _AusConnectLocalClient(); 56 extern int _AusCallLocalServer(); 57 extern int _AusReadLocalStream(); 58 extern int _AusErrorCall(); 59 extern int _AusWriteLocalStream(); 60 extern int _AusCloseLocalStream(); 61 extern int _AusSetupTliStream(); 62 extern int _AusConnectTliClient(); 63 extern int _AusCallTliServer(); 64 extern int _AusReadTliStream(); 65 extern int _AusWriteTliStream(); 66 extern int _AusCloseTliStream(); 67 68 69 Austream _AusStream[] = { 70 71 { 72 /* local connections using pseudo-ttys */ 73 74 _AusSetupLocalStream, 75 _AusConnectLocalClient, 76 _AusCallLocalServer, 77 _AusReadLocalStream, 78 _AusErrorCall, 79 write, 80 close, 81 NULL 82 }, 83 { 84 #ifdef SVR4 85 /* local connections using named streams */ 86 87 _AusSetupNamedStream, 88 #else 89 /* local connections using streams */ 90 _AusSetupLocalStream, 91 #endif 92 _AusConnectLocalClient, 93 _AusCallLocalServer, 94 _AusReadLocalStream, 95 _AusErrorCall, 96 write, 97 close, 98 NULL 99 }, 100 /* Enhanced Application Compatibility Support */ 101 { 102 #ifdef SVR4 103 /* SVR4 stream pipe code */ 104 _AusSetupSpStream, 105 #else 106 _AusSetupLocalStream, 107 #endif 108 _AusConnectLocalClient, 109 _AusCallLocalServer, 110 _AusReadLocalStream, 111 _AusErrorCall, 112 write, 113 close, 114 NULL 115 }, 116 /* End Enhanced Application Compatibility Support */ 117 118 { 119 /* remote connections using tcp */ 120 _AusSetupTliStream, 121 _AusConnectTliClient, 122 _AusCallTliServer, 123 _AusReadLocalStream, 124 _AusErrorCall, 125 write, 126 close, 127 NULL 128 }, 129 { 130 /* remote connections using StarLan */ 131 _AusSetupTliStream, 132 _AusConnectTliClient, 133 _AusCallTliServer, 134 _AusReadLocalStream, 135 _AusErrorCall, 136 write, 137 close, 138 NULL 139 } 140 }; 141 142 143 #endif /* STREAMSCONN */ 144