Debian Codegraph @

nx-X11/lib/src/xcms/UNDEFINED.c

raw
1
2 /*
3 * Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
4 * All Rights Reserved
5 *
6 * This file is a component of an X Window System-specific implementation
7 * of Xcms based on the TekColor Color Management System. Permission is
8 * hereby granted to use, copy, modify, sell, and otherwise distribute this
9 * software and its documentation for any purpose and without fee, provided
10 * that this copyright, permission, and disclaimer notice is reproduced in
11 * all copies of this software and in supporting documentation. TekColor
12 * is a trademark of Tektronix, Inc.
13 *
14 * Tektronix makes no representation about the suitability of this software
15 * for any purpose. It is provided "as is" and with all faults.
16 *
17 * TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
18 * INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
19 * PARTICULAR PURPOSE. IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
20 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
21 * RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER IN AN ACTION OF
22 * CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
23 * CONNECTION WITH THE USE OR THE PERFORMANCE OF THIS SOFTWARE.
24 *
25 *
26 *
27 * NAME
28 * UNDEFINED.c
29 *
30 * DESCRIPTION
31 * UNDEFINED Color Space
32 *
33 *
34 */
35
36 #ifdef HAVE_CONFIG_H
37 #include <config.h>
38 #endif
39 #include "Xlibint.h"
40 #include "Xcmsint.h"
41
42 /*
43 * FORWARD DECLARATIONS
44 */
45 static int DummyParseStringProc(
46 char* /* color_string */,
47 XcmsColor* /* color_return */
48 );
49 static Status ReturnZero(
50 XcmsCCC /* ccc */,
51 XcmsColor* /* white_point */,
52 XcmsColor* /* colors */,
53 unsigned int /* ncolors */
54 );
55
56
57 /*
58 * LOCALS VARIABLES
59 */
60
61 static Status (*(Fl_ReturnZero[]))(
62 XcmsCCC /* ccc */,
63 XcmsColor* /* white_point */,
64 XcmsColor* /* colors */,
65 unsigned int /* ncolors */
66 ) = {
67 ReturnZero,
68 NULL
69 };
70
71
72 /*
73 * GLOBALS
74 * Variables declared in this package that are allowed
75 * to be used globally.
76 */
77 /*
78 * UNDEFINED Color Space
79 */
80 XcmsColorSpace XcmsUNDEFINEDColorSpace =
81 {
82 "undefined", /* prefix */
83 XcmsUndefinedFormat, /* id */
84 &DummyParseStringProc, /* parseString */
85 Fl_ReturnZero, /* to_CIEXYZ */
86 Fl_ReturnZero /* from_CIEXYZ */
87 };
88
89
90
91 /************************************************************************
92 * *
93 * PRIVATE ROUTINES *
94 * *
95 ************************************************************************/
96
97 /*
98 * NAME
99 * ReturnZero
100 *
101 * SYNOPSIS
102 */
103 /* ARGSUSED */
104 static Status
105 ReturnZero(
106 XcmsCCC ccc /* ccc */,
107 XcmsColor* white /* white_point */,
108 XcmsColor* colors /* colors */,
109 unsigned int ncolors /* ncolors */
110 )
111 /*
112 * DESCRIPTION
113 * Does nothing.
114 *
115 * RETURNS
116 * 0
117 *
118 */
119 {
120 return(0);
121 }
122
123 static int DummyParseStringProc(
124 char* color_string /* color_string */,
125 XcmsColor* color_return /* color_return */
126 )
127 {
128 return(0);
129 }
130
131 /* ### EOF ### */