File indexing completed on 2025-01-18 10:14:31
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 #ifndef _Xauth_h
0028 #define _Xauth_h
0029
0030
0031
0032
0033 #ifdef __clang__
0034 #pragma clang diagnostic push
0035 #pragma clang diagnostic ignored "-Wpadded"
0036 #endif
0037
0038 typedef struct xauth {
0039 unsigned short family;
0040 unsigned short address_length;
0041 char *address;
0042 unsigned short number_length;
0043 char *number;
0044 unsigned short name_length;
0045 char *name;
0046 unsigned short data_length;
0047 char *data;
0048 } Xauth;
0049
0050 #ifdef __clang__
0051 #pragma clang diagnostic pop
0052 #endif
0053
0054 #ifndef _XAUTH_STRUCT_ONLY
0055
0056 # include <X11/Xfuncproto.h>
0057 # include <X11/Xfuncs.h>
0058
0059 # include <stdio.h>
0060
0061 # define FamilyLocal (256)
0062 # define FamilyWild (65535)
0063 # define FamilyNetname (254)
0064 # define FamilyKrb5Principal (253)
0065 # define FamilyLocalHost (252)
0066
0067
0068 _XFUNCPROTOBEGIN
0069
0070 char *XauFileName(void);
0071
0072 Xauth *XauReadAuth(
0073 FILE*
0074 );
0075
0076 int XauLockAuth(
0077 _Xconst char* ,
0078 int ,
0079 int ,
0080 long
0081 );
0082
0083 int XauUnlockAuth(
0084 _Xconst char*
0085 );
0086
0087 int XauWriteAuth(
0088 FILE* ,
0089 Xauth*
0090 );
0091
0092 Xauth *XauGetAuthByAddr(
0093 #if NeedWidePrototypes
0094 unsigned int ,
0095 unsigned int ,
0096 #else
0097 unsigned short ,
0098 unsigned short ,
0099 #endif
0100 _Xconst char* ,
0101 #if NeedWidePrototypes
0102 unsigned int ,
0103 #else
0104 unsigned short ,
0105 #endif
0106 _Xconst char* ,
0107 #if NeedWidePrototypes
0108 unsigned int ,
0109 #else
0110 unsigned short ,
0111 #endif
0112 _Xconst char*
0113 );
0114
0115 Xauth *XauGetBestAuthByAddr(
0116 #if NeedWidePrototypes
0117 unsigned int ,
0118 unsigned int ,
0119 #else
0120 unsigned short ,
0121 unsigned short ,
0122 #endif
0123 _Xconst char* ,
0124 #if NeedWidePrototypes
0125 unsigned int ,
0126 #else
0127 unsigned short ,
0128 #endif
0129 _Xconst char* ,
0130 int ,
0131 char** ,
0132 _Xconst int*
0133 );
0134
0135 void XauDisposeAuth(
0136 Xauth*
0137 );
0138
0139 _XFUNCPROTOEND
0140
0141
0142
0143 # define LOCK_SUCCESS 0
0144 # define LOCK_ERROR 1
0145 # define LOCK_TIMEOUT 2
0146
0147 #endif
0148
0149 #endif