This file is indexed.

/usr/include/aqsis/ri/shadeop.h is in libaqsis-dev 1.8.2-3.

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
/* Aqsis
 / Copyright (C) 1997 - 2001, Paul C. Gregory
 /
 / Contact: pgregory@aqsis.org
 /
 / This library is free software; you can redistribute it and/or
 / modify it under the terms of the GNU 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
 / General Public License for more details.
 /
 / You should have received a copy of the GNU General Public
 / License along with this library; if not, write to the Free Software
 / Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

/** \file
 * \brief Utility macros for creating Dynamic Shader Operations for Aqsis
 * \author Tristan Colgate <tristan@inuxtech.co.uk>
 *
 * ===================================================================
 * C-compatible header. C++ constructs must be preprocessor-protected.
 * ===================================================================
 */

/** Renderman Interface is Copyright (c) 1988 Pixar. All Rights reserved.*/

#ifndef SHADEOP_H_INCLUDED
#define SHADEOP_H_INCLUDED

#include <aqsis/config.h>

#ifdef __cplusplus
#	define EXTERN_C extern "C"
#else
#	define EXTERN_C
#endif

struct SqShadeOp
{
	const char *m_opspec;
	const char *m_init;
	const char *m_shutdown;
};

typedef struct _STRING_DESC
{
	char *s;
	int bufflen;
}
STRING_DESC;

/** Some of the DSO's out there seem to use this */
#define SHADEOP_SPEC struct SqShadeOp

/** Utility macro for declaring a table of shader operations */
/* The extra extern "C" declaration here is to prevent name mangling as usual,
   but is in a separate statement to avoid a spurious gcc warning. */
#define SHADEOP_TABLE(opname)                                        \
    EXTERN_C struct SqShadeOp AQSIS_EXPORT opname ## _shadeops [];   \
    struct SqShadeOp AQSIS_EXPORT  opname ## _shadeops []

/** Utility macro for declaring a shadeop method */
#define SHADEOP(method) EXTERN_C AQSIS_EXPORT int method (void *initdata, int argc, void **argv)

/** Utility macro for declaring a shadeop initilaisation function */
#define SHADEOP_INIT(initfunc) EXTERN_C AQSIS_EXPORT void* initfunc (int ctx, void *texturectx)

/** Utility macro for declaring a shadeop shutdown function */
#define SHADEOP_SHUTDOWN(shutdownfunc) EXTERN_C AQSIS_EXPORT void shutdownfunc (void *initdata)
/** alternative name for the above seen in bbox.c in the RMR */
#define SHADEOP_CLEANUP(shutdownfunc) EXTERN_C AQSIS_EXPORT void shutdownfunc (void *initdata)

#endif