1 /***********************************************************
2 Copyright 1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
3 
4                         All Rights Reserved
5 
6 Permission to use, copy, modify, and distribute this software and its
7 documentation for any purpose and without fee is hereby granted,
8 provided that the above copyright notice appear in all copies and that
9 both that copyright notice and this permission notice appear in
10 supporting documentation, and that the names of Sun Microsystems,
11 the X Consortium, and MIT not be used in advertising or publicity
12 pertaining to distribution of the software without specific, written
13 prior permission.
14 
15 SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
17 SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
18 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
19 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
20 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
21 SOFTWARE.
22 
23 ******************************************************************/
24 
25 #ifndef _LBXSCOPE_H_
26 #define _LBXSCOPE_H_
27 
28 #define LBXREQUESTHEADER  "LBXREQUEST"
29 #define LBXREPLYHEADER	  "LBXREPLY"
30 #define LBXEVENTHEADER	  "LBXEVENT"
31 
32 /*
33   To aid in making the choice between level 1 and level 2, we
34   define the following define, which does not print relatively
35   unimportant fields.
36 */
37 
38 #define printfield(a,b,c,d,e) if (Verbose > 1) PrintField(a,b,c,d,e)
39 
40 extern unsigned char LBXEvent;
41 
42 extern void LbxQueryVersion(FD fd, const unsigned char *buf);
43 extern void LbxQueryVersionReply(FD fd, const unsigned char *buf);
44 extern void LbxStartProxy(FD fd, const unsigned char *buf);
45 extern void LbxStopProxy(FD fd, const unsigned char *buf);
46 extern void LbxNewClient(FD fd, const unsigned char *buf);
47 extern void LbxCloseClient(FD fd, const unsigned char *buf);
48 extern void LbxSwitch(FD fd, const unsigned char *buf);
49 extern void LbxModifySequence(FD fd, const unsigned char *buf);
50 extern void LbxSwitchEvent(FD fd, const unsigned char *buf);
51 extern void LbxCloseEvent(FD fd, const unsigned char *buf);
52 
53 #endif
54