41 #include "upnpconfig.h"
70 typedef enum Upnp_Module
83 typedef enum Upnp_LogLevel_e
97 #define UPNP_PACKET UPNP_ERROR
102 #define UPNP_DEFAULT_LOG_LEVEL UPNP_ALL
120 Upnp_LogLevel log_level);
146 const char *fileName,
148 const char *Ignored);
151 const char *ErrFileName,
const char *ignored)
175 Upnp_LogLevel level, Dbg_Module module)
191 Upnp_LogLevel DLevel,
195 const char *DbgFileName,
206 __attribute__((format(__printf__, 5, 6)))
212 const char *DbgFileName,
218 __attribute__((format(__printf__, 5, 6)))
223 const char *DbgFileName,
void UpnpPrintf(Upnp_LogLevel DLevel, Dbg_Module Module, const char *DbgFileName, int DbgLineNo, const char *FmtStr,...)
Prints the debug statement either on the standard output or log file along with the information from ...
Definition: upnpdebug.c:230
int UpnpInitLog(void)
Initialize the log files.
Definition: upnpdebug.c:71
#define UPNP_E_SUCCESS
The operation completed successfully.
Definition: upnp.h:97
void UpnpSetLogLevel(Upnp_LogLevel log_level)
Set the log level (see Upnp_LogLevel).
Definition: upnpdebug.c:104
FILE * UpnpGetDebugFile(Upnp_LogLevel level, Dbg_Module module)
Check if the module is turned on for debug and returns the file descriptor corresponding to the debug...
Definition: upnpdebug.c:262
void UpnpCloseLog(void)
Closes the log files.
Definition: upnpdebug.c:110
void UpnpSetLogFileNames(const char *fileName, const char *Ignored)
Set the name for the log file. There used to be 2 separate files. The second parameter has been kept ...
Definition: upnpdebug.c:126
#define UPNP_INLINE
Declares an inline function.
Definition: UpnpGlobal.h:103
Defines constants that for some reason are not defined on some systems.