xauth.h revision 7a0395d0
1/* 2 * $Xorg: xauth.h,v 1.4 2001/02/09 02:05:38 xorgcvs Exp $ 3 * 4 * 5Copyright 1989, 1998 The Open Group 6 7Permission to use, copy, modify, distribute, and sell this software and its 8documentation for any purpose is hereby granted without fee, provided that 9the above copyright notice appear in all copies and that both that 10copyright notice and this permission notice appear in supporting 11documentation. 12 13The above copyright notice and this permission notice shall be included in 14all copies or substantial portions of the Software. 15 16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 20AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 23Except as contained in this notice, the name of The Open Group shall not be 24used in advertising or otherwise to promote the sale, use or other dealings 25in this Software without prior written authorization from The Open Group. 26 * * 27 * Author: Jim Fulton, MIT X Consortium 28 */ 29/* $XFree86: xc/programs/xauth/xauth.h,v 1.6tsi Exp $ */ 30 31#include <stdio.h> 32#include <X11/Xos.h> 33#include <X11/Xauth.h> 34#include <X11/Xfuncs.h> 35 36#ifndef True 37typedef int Bool; 38#define False 0 39#define True 1 40#endif 41 42extern char *ProgramName; 43 44#include <stdlib.h> 45 46struct addrlist { 47 struct addrlist *next; 48 char *address; 49 int len; 50 int family; 51}; 52 53extern char *get_hostname ( Xauth *auth ); 54extern struct addrlist *get_address_info ( int family, char *fulldpyname, int prefix, char *host); 55extern char *copystring ( char *src, int len ); 56extern char *get_local_hostname ( char *buf, int maxlen ); 57extern Bool parse_displayname ( char *displayname, int *familyp, char **hostp, int *dpynump, int *scrnump, char **restp ); 58extern int auth_initialize ( char *authfilename ); 59extern int auth_finalize ( void ); 60extern int process_command ( char *inputfilename, int lineno, int argc, char **argv ); 61extern int print_help ( FILE *fp, char *cmd, char *prefix ); 62extern int verbose; 63extern Bool ignore_locks; 64extern Bool break_locks; 65extern Bool no_name_lookups; 66