ReactOS  0.4.14-dev-293-g2b39b42
tif_warning.c File Reference
#include <precomp.h>
Include dependency graph for tif_warning.c:

Go to the source code of this file.

Functions

TIFFErrorHandler TIFFSetWarningHandler (TIFFErrorHandler handler)
 
TIFFErrorHandlerExt TIFFSetWarningHandlerExt (TIFFErrorHandlerExt handler)
 
void TIFFWarning (const char *module, const char *fmt,...)
 
void TIFFWarningExt (thandle_t fd, const char *module, const char *fmt,...)
 

Variables

TIFFErrorHandlerExt _TIFFwarningHandlerExt = NULL
 

Function Documentation

◆ TIFFSetWarningHandler()

TIFFErrorHandler TIFFSetWarningHandler ( TIFFErrorHandler  handler)

Definition at line 33 of file tif_warning.c.

34 {
37  return (prev);
38 }
void(* TIFFErrorHandler)(const char *, const char *, va_list)
Definition: tiffio.h:276
TIFFErrorHandler _TIFFwarningHandler
Definition: tif_unix.c:364
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7786

◆ TIFFSetWarningHandlerExt()

TIFFErrorHandlerExt TIFFSetWarningHandlerExt ( TIFFErrorHandlerExt  handler)

Definition at line 41 of file tif_warning.c.

42 {
45  return (prev);
46 }
void(* TIFFErrorHandlerExt)(thandle_t, const char *, const char *, va_list)
Definition: tiffio.h:277
TIFFErrorHandlerExt _TIFFwarningHandlerExt
Definition: tif_warning.c:30
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7786

◆ TIFFWarning()

void TIFFWarning ( const char module,
const char fmt,
  ... 
)

Definition at line 49 of file tif_warning.c.

50 {
51  va_list ap;
52  if (_TIFFwarningHandler) {
53  va_start(ap, fmt);
54  (*_TIFFwarningHandler)(module, fmt, ap);
55  va_end(ap);
56  }
58  va_start(ap, fmt);
59  (*_TIFFwarningHandlerExt)(0, module, fmt, ap);
60  va_end(ap);
61  }
62 }
HMODULE module
Definition: main.cpp:47
const char * fmt
Definition: wsprintf.c:30
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
TIFFErrorHandlerExt _TIFFwarningHandlerExt
Definition: tif_warning.c:30
TIFFErrorHandler _TIFFwarningHandler
Definition: tif_unix.c:364
#define va_start(ap, A)
Definition: acmsvcex.h:91
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32
Definition: dsound.c:943

◆ TIFFWarningExt()

void TIFFWarningExt ( thandle_t  fd,
const char module,
const char fmt,
  ... 
)

Definition at line 65 of file tif_warning.c.

66 {
67  va_list ap;
68  if (_TIFFwarningHandler) {
69  va_start(ap, fmt);
70  (*_TIFFwarningHandler)(module, fmt, ap);
71  va_end(ap);
72  }
74  va_start(ap, fmt);
75  (*_TIFFwarningHandlerExt)(fd, module, fmt, ap);
76  va_end(ap);
77  }
78 }
HMODULE module
Definition: main.cpp:47
const char * fmt
Definition: wsprintf.c:30
static int fd
Definition: io.c:51
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
TIFFErrorHandlerExt _TIFFwarningHandlerExt
Definition: tif_warning.c:30
TIFFErrorHandler _TIFFwarningHandler
Definition: tif_unix.c:364
#define va_start(ap, A)
Definition: acmsvcex.h:91
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32
Definition: dsound.c:943

Referenced by _TIFFVGetField(), _TIFFVSetField(), buildMap(), CheckDirCount(), TIFFFetchNormalTag(), TIFFFillStrip(), TIFFFillTile(), TIFFReadCustomDirectory(), TIFFReadDirectory(), TIFFReadDirectoryCheckOrder(), and TIFFReadDirEntryOutputErr().

Variable Documentation

◆ _TIFFwarningHandlerExt

TIFFErrorHandlerExt _TIFFwarningHandlerExt = NULL

Definition at line 30 of file tif_warning.c.

Referenced by TIFFSetWarningHandlerExt(), TIFFWarning(), and TIFFWarningExt().