ReactOS 0.4.17-dev-934-g091855f
debug.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  flag_info
 

Macros

#define DM_STRUCT_INIT(x)
 
#define FE(x)   { x, #x }
 

Functions

BOOL IS_VALID_DMFORM (FOURCC chunkID)
 
const char * resolve_STREAM_SEEK (DWORD flag)
 
const char * debugstr_DMUS_IO_CONTAINER_HEADER (LPDMUS_IO_CONTAINER_HEADER pHeader)
 
const char * debugstr_DMUS_IO_CONTAINED_OBJECT_HEADER (LPDMUS_IO_CONTAINED_OBJECT_HEADER pHeader)
 

Macro Definition Documentation

◆ DM_STRUCT_INIT

#define DM_STRUCT_INIT (   x)
Value:
do { \
memset((x), 0, sizeof(*(x))); \
(x)->dwSize = sizeof(*x); \
} while (0)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56

Definition at line 30 of file debug.h.

◆ FE

#define FE (   x)    { x, #x }

Definition at line 36 of file debug.h.

Function Documentation

◆ debugstr_DMUS_IO_CONTAINED_OBJECT_HEADER()

const char * debugstr_DMUS_IO_CONTAINED_OBJECT_HEADER ( LPDMUS_IO_CONTAINED_OBJECT_HEADER  pHeader)

Definition at line 60 of file debug.c.

60 {
61 if (pHeader) {
62 char buffer[1024], *ptr = buffer;
63
64 ptr += sprintf(ptr, "DMUS_IO_CONTAINED_OBJECT_HEADER (%p):", pHeader);
65 ptr += sprintf(ptr, "\n - guidClassID = %s", debugstr_dmguid(&pHeader->guidClassID));
66 ptr += sprintf(ptr, "\n - dwFlags = %#lx%s", pHeader->dwFlags,
67 pHeader->dwFlags & DMUS_CONTAINED_OBJF_KEEP ? " (DMUS_CONTAINED_OBJF_KEEP)" : "");
68 ptr += sprintf(ptr, "\n - ckid = %s", debugstr_fourcc (pHeader->ckid));
69 ptr += sprintf(ptr, "\n - fccType = %s", debugstr_fourcc (pHeader->fccType));
70
71 return wine_dbg_sprintf("%s", buffer);
72 } else {
73 return wine_dbg_sprintf("(NULL)");
74 }
75}
const char * wine_dbg_sprintf(const char *format,...)
Definition: compat.c:296
const char * debugstr_dmguid(const GUID *id)
Definition: dmobject.c:36
#define DMUS_CONTAINED_OBJF_KEEP
Definition: dmusicf.h:233
GLuint buffer
Definition: glext.h:5915
FxContextHeader * pHeader
Definition: handleapi.cpp:604
static PVOID ptr
Definition: dispmode.c:27
#define sprintf
Definition: sprintf.c:45
static __inline const char * debugstr_fourcc(unsigned int cc)
Definition: debug.h:397

Referenced by IPersistStreamImpl_Load().

◆ debugstr_DMUS_IO_CONTAINER_HEADER()

const char * debugstr_DMUS_IO_CONTAINER_HEADER ( LPDMUS_IO_CONTAINER_HEADER  pHeader)

Definition at line 46 of file debug.c.

46 {
47 if (pHeader) {
48 char buffer[1024], *ptr = buffer;
49
50 ptr += sprintf(ptr, "DMUS_IO_CONTAINER_HEADER (%p):", pHeader);
51 ptr += sprintf(ptr, "\n - dwFlags = %#lx%s", pHeader->dwFlags,
52 pHeader->dwFlags & DMUS_CONTAINER_NOLOADS ? " (DMUS_CONTAINER_NOLOADS)" : "");
53
54 return wine_dbg_sprintf("%s", buffer);
55 } else {
56 return wine_dbg_sprintf("(NULL)");
57 }
58}
#define DMUS_CONTAINER_NOLOADS
Definition: dmusicf.h:235

Referenced by IPersistStreamImpl_Load().

◆ IS_VALID_DMFORM()

BOOL IS_VALID_DMFORM ( FOURCC  chunkID)

Definition at line 24 of file debug.c.

24 {
25 if ((chunkID == DMUS_FOURCC_AUDIOPATH_FORM) || (chunkID == DMUS_FOURCC_BAND_FORM) || (chunkID == DMUS_FOURCC_CHORDMAP_FORM)
26 || (chunkID == DMUS_FOURCC_CONTAINER_FORM) || (chunkID == FOURCC_DLS) || (chunkID == DMUS_FOURCC_SCRIPT_FORM)
27 || (chunkID == DMUS_FOURCC_SEGMENT_FORM) || (chunkID == DMUS_FOURCC_STYLE_FORM) || (chunkID == DMUS_FOURCC_TOOLGRAPH_FORM)
28 || (chunkID == DMUS_FOURCC_TRACK_FORM) || (chunkID == mmioFOURCC('W','A','V','E'))) return TRUE;
29 else return FALSE;
30}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define FOURCC_DLS
Definition: dls1.h:33
#define DMUS_FOURCC_BAND_FORM
Definition: dmusicf.h:63
#define DMUS_FOURCC_TRACK_FORM
Definition: dmusicf.h:141
#define DMUS_FOURCC_SEGMENT_FORM
Definition: dmusicf.h:114
#define DMUS_FOURCC_AUDIOPATH_FORM
Definition: dmusicf.h:53
#define DMUS_FOURCC_CHORDMAP_FORM
Definition: dmusicf.h:68
#define DMUS_FOURCC_SCRIPT_FORM
Definition: dmusicf.h:108
#define DMUS_FOURCC_TOOLGRAPH_FORM
Definition: dmusicf.h:138
#define DMUS_FOURCC_CONTAINER_FORM
Definition: dmusicf.h:85
#define DMUS_FOURCC_STYLE_FORM
Definition: dmusicf.h:118
#define mmioFOURCC(c0, c1, c2, c3)
Definition: mmsystem.h:38

Referenced by IPersistStreamImpl_Load().

◆ resolve_STREAM_SEEK()

const char * resolve_STREAM_SEEK ( DWORD  flag)

Definition at line 33 of file debug.c.

33 {
34 switch (flag) {
35 case STREAM_SEEK_SET:
36 return wine_dbg_sprintf ("STREAM_SEEK_SET");
37 case STREAM_SEEK_CUR:
38 return wine_dbg_sprintf ("STREAM_SEEK_CUR");
39 case STREAM_SEEK_END:
40 return wine_dbg_sprintf ("STREAM_SEEK_END");
41 default:
42 return wine_dbg_sprintf ("()");
43 }
44}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
Definition: glfuncs.h:52

Referenced by IDirectMusicLoaderResourceStream_IStream_Seek().