/* $XConsortium: Xstreams.h,v 1.6 91/07/19 23:22:53 gildea Exp $ */
/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
* that the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of AT&T or USL not be used in advertising
* or publicity pertaining to distribution of the software without specific,
* written prior permission. AT&T and USL make no representations about the
* suitability of this software for any purpose. It is provided "as is"
* without express or implied warranty.
*
* AT&T and USL DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
* NO EVENT SHALL AT&T or USL BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $XFree86$ */
#ifndef _XSTREAMS_H_
#define _XSTREAMS_H_
/*
Xstreams.h (C header file)
Acc: 575304412 Tue Apr 26 09:46:52 1988
Mod: 574017273 Tue Apr 26 12:14:33 1988
Sta: 574017273 Tue Apr 26 12:14:33 1988
Owner: 2011
Group: 1985
Permissions: 644
*/
/*
START USER STAMP AREA
*/
/*
END USER STAMP AREA
*/
typedef struct _host {
int host_len;
} HOST;
/*
* Structure for handling multiple connection requests on the same stream.
*/
struct listenCall {
};
struct listenQue {
};
typedef struct {
int flags;
char type;
int display;
char *inputbuf;
int buflen;
int bufptr;
int msglen;
} IOBUFFER;
typedef struct {
int _nnets;
#ifdef SVR4
#else
#endif
int _npeers;
char **_peer;
int *_peerlen;
} networkInfo;
typedef struct _Xstream {
int (*SetupTheListener)();
int (*ConnectNewClient)();
int (*CallTheListener)();
int (*ReadFromStream)();
int (*BytesCanBeRead)();
int (*WriteToStream)();
int (*CloseStream)();
int (*CreateAddress)();
union ext {
int (*NameServer)();
} u;
} Xstream;
/* old shared libraries have the names already fixed */
#ifdef USL_COMPAT
#ifdef SVR4
#endif /* SVR4 */
#endif /* USL_COMPAT */
#define NO_BUFFERING 0
/* Network services */
#define OpenDaemonConnection 0
#define X_LOCAL_STREAM 0
/* Enhanced Application Compatibility Support */
/* End Enhanced Application Compatibility Support */
/*
The following are defined in X.h. Any changes to FamilyUname
should take X.h into consideration.
*/
/* protocol families */
/*
#define FamilyInternet 0
#define FamilyDECnet 1
#define FamilyChaos 2
*/
/* Enhanced Application Compatibility Support */
/* End Enhanced Application Compatibility Support */
/* Enhanced Application Compatibility Support */ \
/* End Enhanced Application Compatibility Support */ \
/*
* header of messages sent by X to the nameserver
* 1st int: the size of the entire message.
* 2nd int: the size of the header itself.
* 3rd int: the service number.
* 4th int: the display number.
* 5th int: the length of the network name.
*/
#endif /* _XSTREAMS_H_ */