1/* $Xorg: PMproto.h,v 1.4 2001/02/09 02:05:34 xorgcvs Exp $ */
2
3/*
4Copyright 1996, 1998  The Open Group
5
6Permission to use, copy, modify, distribute, and sell this software and its
7documentation for any purpose is hereby granted without fee, provided that
8the above copyright notice appear in all copies and that both that
9copyright notice and this permission notice appear in supporting
10documentation.
11
12The above copyright notice and this permission notice shall be included
13in all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
19OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21OTHER DEALINGS IN THE SOFTWARE.
22
23Except as contained in this notice, the name of The Open Group shall
24not be used in advertising or otherwise to promote the sale, use or
25other dealings in this Software without prior written authorization
26from The Open Group.
27*/
28
29/*		Proxy Management Protocol		*/
30
31#ifndef _PMPROTO_H_
32#define _PMPROTO_H_
33
34typedef struct {
35    CARD8	majorOpcode;
36    CARD8	minorOpcode;	/* == 1 */
37    CARD16	authLen;
38    CARD32	length;
39    /* STRING	   proxy-service */
40    /* STRING	   server-address */
41    /* STRING	   host-address */
42    /* STRING	   start-options */
43    /* STRING	   auth-name (if authLen > 0) */
44    /* LISTofCARD8 auth-data (if authLen > 0) */
45} pmGetProxyAddrMsg;
46
47#define sz_pmGetProxyAddrMsg 8
48
49
50typedef struct {
51    CARD8	majorOpcode;
52    CARD8	minorOpcode;	/* == 2 */
53    CARD8	status;
54    CARD8	unused;
55    CARD32	length;
56    /* STRING	proxy-address */
57    /* STRING	failure-reason */
58} pmGetProxyAddrReplyMsg;
59
60#define sz_pmGetProxyAddrReplyMsg 8
61
62
63typedef struct {
64    CARD8	majorOpcode;
65    CARD8	minorOpcode;	/* == 3 */
66    CARD16	unused;
67    CARD32	length;
68    /* STRING	  proxy-service */
69} pmStartProxyMsg;
70
71#define sz_pmStartProxyMsg 8
72
73
74#endif /* _PMPROTO_H_ */
75