ixmldebug.h
Go to the documentation of this file.
#ifndef IXMLDEBUG_H
#define IXMLDEBUG_H
#include "UpnpGlobal.h"
#include "ixml.h"
#ifdef DEBUG
void IxmlPrintf(
const char *DbgFileName,
int DbgLineNo,
const char *FunctionName,
const char *FmtStr,
...)
#if (__GNUC__ >= 3)
/* This enables printf like format checking by the compiler */
__attribute__((format(__printf__, 4, 5)))
#endif
;
#else /* DEBUG */
static UPNP_INLINE void IxmlPrintf(const char *FmtStr, ...) { (void)FmtStr; }
#endif /* DEBUG */
#ifdef DEBUG
void printNodes(
IXML_Node *tmpRoot,
int depth);
#else
static UPNP_INLINE void printNodes(IXML_Node *tmpRoot, int depth)
{
(void)tmpRoot;
(void)depth;
}
#endif
#endif /* IXMLDEBUG_H */
UpnpGlobal.h
Defines constants that for some reason are not defined on some systems.
UPNP_INLINE
#define UPNP_INLINE
Declares an inline function.
Definition UpnpGlobal.h:119
ixml.h
IxmlPrintf
void IxmlPrintf(const char *DbgFileName, int DbgLineNo, const char *FunctionName, const char *FmtStr,...)
Prints the debug statement either on the standard output or log file along with the information from ...
Definition ixmldebug.c:15
printNodes
void printNodes(IXML_Node *tmpRoot, int depth)
Print the node names and values of a XML tree.
Definition ixmldebug.c:36
_IXML_Node
Data structure common to all types of nodes.
Definition ixml.h:136