99#define UPNP_PACKET UPNP_ERROR
102#define UPNP_DEFAULT_LOG_LEVEL UPNP_ALL
111#if defined NDEBUG && !defined UPNP_DEBUG_C
112#define UpnpInitLog UpnpInitLog_Inlined
113static inline int UpnpInitLog_Inlined(
void) {
return UPNP_E_SUCCESS; }
122#if defined NDEBUG && !defined UPNP_DEBUG_C
123#define UpnpSetLogLevel UpnpSetLogLevel_Inlined
124static inline void UpnpSetLogLevel_Inlined(
Upnp_LogLevel log_level) {
135#if defined NDEBUG && !defined UPNP_DEBUG_C
136#define UpnpCloseLog UpnpCloseLog_Inlined
137static inline void UpnpCloseLog_Inlined(
void) {}
149 const char* Ignored);
151#if defined NDEBUG && !defined UPNP_DEBUG_C
152#define UpnpSetLogFileNames UpnpSetLogFileNames_Inlined
153static inline void UpnpSetLogFileNames_Inlined(
const char* ErrFileName,
154 const char* ignored) {
177#if (defined NDEBUG && !defined UPNP_DEBUG_C)
178#define UpnpGetDebugFile UpnpGetDebugFile_Inlined
179static inline FILE* UpnpGetDebugFile_Inlined(
Upnp_LogLevel level,
181 (void)level, (
void)
module;
202 const char* DbgFileName,
213 __attribute__((format(__printf__, 5, 6)))
217#if defined NDEBUG && !defined UPNP_DEBUG_C
218#define UpnpPrintf UpnpPrintf_Inlined
231 const char* DbgFileName,
int DbgLineNo,
232 const char* FmtStr, ...) {
#define UPNP_E_SUCCESS
The operation completed successfully.
enum Upnp_Module Dbg_Module
Only debug messages from this program module.
Upnp_Module
Only debug messages from this program module.
UPnPsdk_VIS FILE * UpnpGetDebugFile(Upnp_LogLevel DLevel, Dbg_Module Module)
Check if the module is turned on for debug and returns the file descriptor corresponding to the debug...
UPnPsdk_VIS 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 ...
UPnPsdk_VIS void UpnpPrintf(Upnp_LogLevel DLevel, Dbg_Module Module, const char *DbgFileName, int DbgLineNo, const char *FmtStr,...)
Prints the debug statement.
UPnPsdk_VIS int UpnpInitLog(void)
Initialize the log files.
UPnPsdk_VIS void UpnpSetLogLevel(Upnp_LogLevel log_level)
Set the log level (see Upnp_LogLevel).
Upnp_LogLevel_e
Upnp_LogLevel.
UPnPsdk_VIS void UpnpCloseLog(void)
Closes the log files.
enum Upnp_LogLevel_e Upnp_LogLevel
Upnp_LogLevel.
#define UPnPsdk_VIS
Prefix to export symbol for external use.