Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygentif_warning.c
Go to the documentation of this file.
00001 /* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_warning.c,v 1.2.2.1 2010-06-08 18:50:43 bfriesen Exp $ */ 00002 00003 /* 00004 * Copyright (c) 1988-1997 Sam Leffler 00005 * Copyright (c) 1991-1997 Silicon Graphics, Inc. 00006 * 00007 * Permission to use, copy, modify, distribute, and sell this software and 00008 * its documentation for any purpose is hereby granted without fee, provided 00009 * that (i) the above copyright notices and this permission notice appear in 00010 * all copies of the software and related documentation, and (ii) the names of 00011 * Sam Leffler and Silicon Graphics may not be used in any advertising or 00012 * publicity relating to the software without the specific, prior written 00013 * permission of Sam Leffler and Silicon Graphics. 00014 * 00015 * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 00016 * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 00017 * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 00018 * 00019 * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 00020 * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 00021 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 00022 * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 00023 * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 00024 * OF THIS SOFTWARE. 00025 */ 00026 00027 /* 00028 * TIFF Library. 00029 */ 00030 #include "tiffiop.h" 00031 00032 TIFFErrorHandlerExt _TIFFwarningHandlerExt = NULL; 00033 00034 TIFFErrorHandler 00035 TIFFSetWarningHandler(TIFFErrorHandler handler) 00036 { 00037 TIFFErrorHandler prev = _TIFFwarningHandler; 00038 _TIFFwarningHandler = handler; 00039 return (prev); 00040 } 00041 00042 TIFFErrorHandlerExt 00043 TIFFSetWarningHandlerExt(TIFFErrorHandlerExt handler) 00044 { 00045 TIFFErrorHandlerExt prev = _TIFFwarningHandlerExt; 00046 _TIFFwarningHandlerExt = handler; 00047 return (prev); 00048 } 00049 00050 void 00051 TIFFWarning(const char* module, const char* fmt, ...) 00052 { 00053 va_list ap; 00054 va_start(ap, fmt); 00055 if (_TIFFwarningHandler) 00056 (*_TIFFwarningHandler)(module, fmt, ap); 00057 if (_TIFFwarningHandlerExt) 00058 (*_TIFFwarningHandlerExt)(0, module, fmt, ap); 00059 va_end(ap); 00060 } 00061 00062 void 00063 TIFFWarningExt(thandle_t fd, const char* module, const char* fmt, ...) 00064 { 00065 va_list ap; 00066 va_start(ap, fmt); 00067 if (_TIFFwarningHandler) 00068 (*_TIFFwarningHandler)(module, fmt, ap); 00069 if (_TIFFwarningHandlerExt) 00070 (*_TIFFwarningHandlerExt)(fd, module, fmt, ap); 00071 va_end(ap); 00072 } 00073 00074 00075 /* 00076 * Local Variables: 00077 * mode: c 00078 * c-basic-offset: 8 00079 * fill-column: 78 00080 * End: 00081 */ Generated on Sun May 27 2012 04:19:35 for ReactOS by
1.7.6.1
|