This file is indexed.

/usr/include/XmHTML/XCC.h is in xmhtml1-dev 1.1.7-19.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
/*****
* XCC.h : XCC.c public header file: XColorContext routines
*
* This file Version	$Revision: 1.14 $
*
* Creation date:		Mon Mar  3 00:28:18 GMT+0100 1997
* Last modification: 	$Date: 1997/10/23 00:24:42 $
* By:					$Author: newt $
* Current State:		$State: Exp $
*
* Author:				John L. Cwikla
*
* Copyright 1994,1995 John L. Cwikla
* Copyright (C) 1997 by Ripley Software Development 
* All Rights Reserved
* 
* This file is part of the XmHTML Widget Library.
*
* See below for John L. Cwikla's original copyright notice and distribution
* Policy.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*****/
/*****
* $Id: XCC.h,v 1.6 1995/08/04 17:46:53 cwikla
*
* Copyright 1994,1995 John L. Cwikla
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appears in all copies and that
* both that copyright notice and this permission notice appear in
* supporting documentation, and that the name of John L. Cwikla or
* Wolfram Research, Inc not be used in advertising or publicity
* pertaining to distribution of the software without specific, written
* prior permission.  John L. Cwikla and Wolfram Research, Inc make no
* representations about the suitability of this software for any
* purpose.  It is provided "as is" without express or implied warranty.
*
* John L. Cwikla and Wolfram Research, Inc disclaim all warranties with
* regard to this software, including all implied warranties of
* merchantability and fitness, in no event shall John L. Cwikla or
* Wolfram Research, Inc be liable for any special, indirect or
* consequential damages or any damages whatsoever resulting from loss of
* use, data or profits, whether in an action of contract, negligence or
* other tortious action, arising out of or in connection with the use or
* performance of this software.
*
* Author:
*  John L. Cwikla
*  X Programmer
*  Wolfram Research Inc.
*
*  cwikla@wri.com
*
*****/
/*****
* $Source: /usr/local/rcs/Newt/XmHTML/RCS/XCC.h,v $
*****/
/*****
* ChangeLog 
* $Log: XCC.h,v $
* Revision 1.14  1997/10/23 00:24:42  newt
* XmHTML Beta 1.1.0 release
*
* Revision 1.13  1997/08/31 17:31:55  newt
* log edit
*
* Revision 1.12  1997/08/30 00:32:02  newt
* Fixed palette preparations & changed proto's for XCCGetPixels and
* XCCGetPixelsIncremental.
*
* Revision 1.11  1997/08/01 12:54:41  newt
* Proto for XCCGetPixelsIncremental added.
*
* Revision 1.10  1997/05/28 01:35:04  newt
* Updated XCCCreate proto.
*
* Revision 1.9  1997/04/03 05:29:02  newt
* Added XCCFreeColors proto
*
* Revision 1.8  1997/03/20 08:03:19  newt
* XCCGetPixels proto updated
*
* Revision 1.7  1997/03/02 23:44:25  newt
* Expanded copyright marker
*
*****/ 

#ifndef _xcc_h_
#define _xcc_h_

typedef struct _XColorContext *XCC;

_XFUNCPROTOBEGIN

extern XCC XCCCreate(Widget w, Visual *_visual, Colormap _colormap);

/* copy an XCC entirely */
extern XCC XCCCopy(XCC src);

extern XCC XCCMonoCreate(Display *_dpy, Visual *_visual, Colormap _colormap);

extern void XCCFree(XCC _xcc);

extern unsigned long XCCGetPixel(XCC _xcc, unsigned short _red, 
	unsigned short _green, unsigned short _blue, Boolean *failed);

extern void XCCGetPixels(XCC _xcc, unsigned short *reds,
	unsigned short *greens, unsigned short *blues, int ncolors,
	unsigned long *colors, int *nallocated);

extern void XCCGetPixelsIncremental(XCC _xcc, unsigned short *reds,
	unsigned short *greens, unsigned short *blues, int ncolors,
	Boolean *used, unsigned long *colors, int *nallocated);

extern int XCCGetNumColors(XCC _xcc);

extern Colormap XCCGetColormap(XCC _xcc);
extern Visual *XCCGetVisual(XCC _xcc);
extern XVisualInfo *XCCGetVisualInfo(XCC _xcc);
extern int XCCGetDepth(XCC _xcc);
extern int XCCGetClass(XCC _xcc);
extern Display *XCCGetDisplay(XCC _xcc);
extern int XCCQueryColor(XCC _xcc, XColor *_color);
extern int XCCQueryColors(XCC _xcc, XColor *_colors, int _numColors);

/* get colorcomponents of the given color */
extern int XCCGetColor(XCC _xcc, unsigned long pixel_val,
	unsigned short *red, unsigned short *green, unsigned short *blue);

/*****
* Returns visual of either the widget (or any parent that is a subclass of
* shell) or the default visual
*****/
extern Visual *XCCGetParentVisual(Widget w);

/*****
* Add a palette to the given XCC. All colors will then be mapped onto this
* palette.
*****/
extern int XCCAddPalette(XCC _xcc, XColor *palette, int num_palette);

/*****
* Initialize dithering: allocate & initialize a precomputed error correction
* matrices.
*****/
extern void XCCInitDither(XCC _xcc);

/* and free it again */
extern void XCCFreeDither(XCC _xcc);

/*****
* Pick a color using an installed palette. If a direct match is not found,
* a least squares algorithm is used to map the color components.
* The failed arg will be True if the mapping failed. In all other cases a
* pixel value is returned and the _red, _green and _blue args will contain
* the difference between the original and used component (which can be
* negative, hence these args are signed). If they are all equal to 0 a
* perfect match was found (which I suspect will be seldomly the case).
*
* The intended use of this routine is dithering. Either using ordered or
* Floyd-Steinberg.
*****/
unsigned long XCCGetPixelFromPalette(XCC _xcc, unsigned short *_red,
	unsigned short *_green, unsigned short *_blue, Boolean *failed);

/*****
* Same as above, but this time the *index* into the palette at which the
* requested color can be found is returned. Used by the dither algorithms.
*****/
extern unsigned char XCCGetIndexFromPalette(XCC _xcc, int *_red, int *_green,
	int *_blue, Boolean *failed);

_XFUNCPROTOEND

/* Don't add anything after this endif! */
#endif /* _xcc_h_ */