117ca54c3Smrg/* $Xorg: PMproto.h,v 1.4 2001/02/09 02:05:34 xorgcvs Exp $ */ 217ca54c3Smrg 317ca54c3Smrg/* 417ca54c3SmrgCopyright 1996, 1998 The Open Group 517ca54c3Smrg 617ca54c3SmrgPermission to use, copy, modify, distribute, and sell this software and its 717ca54c3Smrgdocumentation for any purpose is hereby granted without fee, provided that 817ca54c3Smrgthe above copyright notice appear in all copies and that both that 917ca54c3Smrgcopyright notice and this permission notice appear in supporting 1017ca54c3Smrgdocumentation. 1117ca54c3Smrg 1217ca54c3SmrgThe above copyright notice and this permission notice shall be included 1317ca54c3Smrgin all copies or substantial portions of the Software. 1417ca54c3Smrg 1517ca54c3SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 1617ca54c3SmrgOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1717ca54c3SmrgMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 1817ca54c3SmrgIN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 1917ca54c3SmrgOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 2017ca54c3SmrgARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2117ca54c3SmrgOTHER DEALINGS IN THE SOFTWARE. 2217ca54c3Smrg 2317ca54c3SmrgExcept as contained in this notice, the name of The Open Group shall 2417ca54c3Smrgnot be used in advertising or otherwise to promote the sale, use or 2517ca54c3Smrgother dealings in this Software without prior written authorization 2617ca54c3Smrgfrom The Open Group. 2717ca54c3Smrg*/ 2817ca54c3Smrg 2917ca54c3Smrg/* Proxy Management Protocol */ 3017ca54c3Smrg 3117ca54c3Smrg#ifndef _PMPROTO_H_ 3217ca54c3Smrg#define _PMPROTO_H_ 3317ca54c3Smrg 3417ca54c3Smrgtypedef struct { 3517ca54c3Smrg CARD8 majorOpcode; 3617ca54c3Smrg CARD8 minorOpcode; /* == 1 */ 37ea1d6981Smrg CARD16 authLen; 38ea1d6981Smrg CARD32 length; 3917ca54c3Smrg /* STRING proxy-service */ 4017ca54c3Smrg /* STRING server-address */ 4117ca54c3Smrg /* STRING host-address */ 4217ca54c3Smrg /* STRING start-options */ 4317ca54c3Smrg /* STRING auth-name (if authLen > 0) */ 4417ca54c3Smrg /* LISTofCARD8 auth-data (if authLen > 0) */ 4517ca54c3Smrg} pmGetProxyAddrMsg; 4617ca54c3Smrg 4717ca54c3Smrg#define sz_pmGetProxyAddrMsg 8 4817ca54c3Smrg 4917ca54c3Smrg 5017ca54c3Smrgtypedef struct { 5117ca54c3Smrg CARD8 majorOpcode; 5217ca54c3Smrg CARD8 minorOpcode; /* == 2 */ 5317ca54c3Smrg CARD8 status; 5417ca54c3Smrg CARD8 unused; 55ea1d6981Smrg CARD32 length; 5617ca54c3Smrg /* STRING proxy-address */ 5717ca54c3Smrg /* STRING failure-reason */ 5817ca54c3Smrg} pmGetProxyAddrReplyMsg; 5917ca54c3Smrg 6017ca54c3Smrg#define sz_pmGetProxyAddrReplyMsg 8 6117ca54c3Smrg 6217ca54c3Smrg 6317ca54c3Smrgtypedef struct { 6417ca54c3Smrg CARD8 majorOpcode; 6517ca54c3Smrg CARD8 minorOpcode; /* == 3 */ 66ea1d6981Smrg CARD16 unused; 67ea1d6981Smrg CARD32 length; 6817ca54c3Smrg /* STRING proxy-service */ 6917ca54c3Smrg} pmStartProxyMsg; 7017ca54c3Smrg 7117ca54c3Smrg#define sz_pmStartProxyMsg 8 7217ca54c3Smrg 7317ca54c3Smrg 7417ca54c3Smrg#endif /* _PMPROTO_H_ */ 75