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