Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/X11/ICE
File: ICEutil.h
/******************************************************************************
[0] Fix | Delete
[1] Fix | Delete
[2] Fix | Delete
Copyright 1993, 1998 The Open Group
[3] Fix | Delete
[4] Fix | Delete
Permission to use, copy, modify, distribute, and sell this software and its
[5] Fix | Delete
documentation for any purpose is hereby granted without fee, provided that
[6] Fix | Delete
the above copyright notice appear in all copies and that both that
[7] Fix | Delete
copyright notice and this permission notice appear in supporting
[8] Fix | Delete
documentation.
[9] Fix | Delete
[10] Fix | Delete
The above copyright notice and this permission notice shall be included in
[11] Fix | Delete
all copies or substantial portions of the Software.
[12] Fix | Delete
[13] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
[14] Fix | Delete
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
[15] Fix | Delete
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
[16] Fix | Delete
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
[17] Fix | Delete
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
[18] Fix | Delete
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[19] Fix | Delete
[20] Fix | Delete
Except as contained in this notice, the name of The Open Group shall not be
[21] Fix | Delete
used in advertising or otherwise to promote the sale, use or other dealings
[22] Fix | Delete
in this Software without prior written authorization from The Open Group.
[23] Fix | Delete
[24] Fix | Delete
Author: Ralph Mor, X Consortium
[25] Fix | Delete
******************************************************************************/
[26] Fix | Delete
[27] Fix | Delete
#ifndef _ICEUTIL_H_
[28] Fix | Delete
#define _ICEUTIL_H_
[29] Fix | Delete
[30] Fix | Delete
#include <X11/Xfuncproto.h>
[31] Fix | Delete
[32] Fix | Delete
#include <stdio.h>
[33] Fix | Delete
[34] Fix | Delete
_XFUNCPROTOBEGIN
[35] Fix | Delete
[36] Fix | Delete
/*
[37] Fix | Delete
* Data structure for entry in ICE authority file
[38] Fix | Delete
*/
[39] Fix | Delete
[40] Fix | Delete
typedef struct {
[41] Fix | Delete
char *protocol_name;
[42] Fix | Delete
unsigned short protocol_data_length;
[43] Fix | Delete
char *protocol_data;
[44] Fix | Delete
char *network_id;
[45] Fix | Delete
char *auth_name;
[46] Fix | Delete
unsigned short auth_data_length;
[47] Fix | Delete
char *auth_data;
[48] Fix | Delete
} IceAuthFileEntry;
[49] Fix | Delete
[50] Fix | Delete
[51] Fix | Delete
/*
[52] Fix | Delete
* Authentication data maintained in memory.
[53] Fix | Delete
*/
[54] Fix | Delete
[55] Fix | Delete
typedef struct {
[56] Fix | Delete
char *protocol_name;
[57] Fix | Delete
char *network_id;
[58] Fix | Delete
char *auth_name;
[59] Fix | Delete
unsigned short auth_data_length;
[60] Fix | Delete
char *auth_data;
[61] Fix | Delete
} IceAuthDataEntry;
[62] Fix | Delete
[63] Fix | Delete
[64] Fix | Delete
/*
[65] Fix | Delete
* Return values from IceLockAuthFile
[66] Fix | Delete
*/
[67] Fix | Delete
[68] Fix | Delete
#define IceAuthLockSuccess 0 /* lock succeeded */
[69] Fix | Delete
#define IceAuthLockError 1 /* lock unexpectely failed, check errno */
[70] Fix | Delete
#define IceAuthLockTimeout 2 /* lock failed, timeouts expired */
[71] Fix | Delete
[72] Fix | Delete
[73] Fix | Delete
/*
[74] Fix | Delete
* Function Prototypes
[75] Fix | Delete
*/
[76] Fix | Delete
[77] Fix | Delete
extern char *IceAuthFileName (
[78] Fix | Delete
void
[79] Fix | Delete
);
[80] Fix | Delete
[81] Fix | Delete
extern int IceLockAuthFile (
[82] Fix | Delete
const char * /* file_name */,
[83] Fix | Delete
int /* retries */,
[84] Fix | Delete
int /* timeout */,
[85] Fix | Delete
long /* dead */
[86] Fix | Delete
);
[87] Fix | Delete
[88] Fix | Delete
extern void IceUnlockAuthFile (
[89] Fix | Delete
const char * /* file_name */
[90] Fix | Delete
);
[91] Fix | Delete
[92] Fix | Delete
extern IceAuthFileEntry *IceReadAuthFileEntry (
[93] Fix | Delete
FILE * /* auth_file */
[94] Fix | Delete
);
[95] Fix | Delete
[96] Fix | Delete
extern void IceFreeAuthFileEntry (
[97] Fix | Delete
IceAuthFileEntry * /* auth */
[98] Fix | Delete
);
[99] Fix | Delete
[100] Fix | Delete
extern Status IceWriteAuthFileEntry (
[101] Fix | Delete
FILE * /* auth_file */,
[102] Fix | Delete
IceAuthFileEntry * /* auth */
[103] Fix | Delete
);
[104] Fix | Delete
[105] Fix | Delete
extern IceAuthFileEntry *IceGetAuthFileEntry (
[106] Fix | Delete
const char * /* protocol_name */,
[107] Fix | Delete
const char * /* network_id */,
[108] Fix | Delete
const char * /* auth_name */
[109] Fix | Delete
);
[110] Fix | Delete
[111] Fix | Delete
extern char *IceGenerateMagicCookie (
[112] Fix | Delete
int /* len */
[113] Fix | Delete
);
[114] Fix | Delete
[115] Fix | Delete
extern void IceSetPaAuthData (
[116] Fix | Delete
int /* numEntries */,
[117] Fix | Delete
IceAuthDataEntry * /* entries */
[118] Fix | Delete
);
[119] Fix | Delete
[120] Fix | Delete
_XFUNCPROTOEND
[121] Fix | Delete
[122] Fix | Delete
#endif /* _ICEUTIL_H_ */
[123] Fix | Delete
[124] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function