nds2-client - Developer 0.16.7
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
nds_logging.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DLL_EXPORT
 
#define NDS_LOG_BAD_GROUP   -1
 
#define NDS_LOG_GROUP_CONNECTION   0
 
#define NDS_LOG_GROUP_VERBOSE_ERRORS   1
 
#define NDS_LOG_GROUP_TRACE_ENTRY_EXIT   2
 
#define NDS_LOG_GROUP_STATUS_UPDATE   3
 
#define NDS_LOG_GROUP_USER   4
 
#define NDS_LOG_GROUP_SIZE_MAX   5
 
#define NDS_LOGGING_HELPER_ENTRY   nds_logging_helper_init
 
#define STRING_IT(x)   #x
 
#define XSTRING_IT(x)   STRING_IT( x )
 
#define NDS_LOGGING_HELPER_ENTRY_STRING   XSTRING_IT( NDS_LOGGING_HELPER_ENTRY )
 

Typedefs

typedef void(* nds_flush_function_type) ()
 
typedef void(* nds_logging_function_type) (const char *Message)
 
typedef void(* nds_logging_helper_entry_type) ()
 

Functions

DLL_EXPORT void nds_function_flush (nds_flush_function_type Func)
 
DLL_EXPORT void nds_function_logging (nds_logging_function_type Func)
 
DLL_EXPORT int nds_logging_check (int Group, int Level)
 
DLL_EXPORT void nds_logging_enable (int Group)
 
DLL_EXPORT void nds_logging_disable (int Group)
 
DLL_EXPORT int nds_logging_debug_level (int Group, int Level)
 
DLL_EXPORT void nds_logging_flush ()
 
DLL_EXPORT int nds_logging_group_from_string (const char *GroupString)
 
DLL_EXPORT void nds_logging_init ()
 
DLL_EXPORT void nds_logging_printf (const char *MessageFormat,...)
 
DLL_EXPORT void nds_logging_print_errno (const char *Leader)
 

Macro Definition Documentation

◆ DLL_EXPORT

#define DLL_EXPORT

◆ NDS_LOG_BAD_GROUP

#define NDS_LOG_BAD_GROUP   -1

◆ NDS_LOG_GROUP_CONNECTION

#define NDS_LOG_GROUP_CONNECTION   0

◆ NDS_LOG_GROUP_SIZE_MAX

#define NDS_LOG_GROUP_SIZE_MAX   5

◆ NDS_LOG_GROUP_STATUS_UPDATE

#define NDS_LOG_GROUP_STATUS_UPDATE   3

◆ NDS_LOG_GROUP_TRACE_ENTRY_EXIT

#define NDS_LOG_GROUP_TRACE_ENTRY_EXIT   2

◆ NDS_LOG_GROUP_USER

#define NDS_LOG_GROUP_USER   4

◆ NDS_LOG_GROUP_VERBOSE_ERRORS

#define NDS_LOG_GROUP_VERBOSE_ERRORS   1

◆ NDS_LOGGING_HELPER_ENTRY

#define NDS_LOGGING_HELPER_ENTRY   nds_logging_helper_init

◆ NDS_LOGGING_HELPER_ENTRY_STRING

#define NDS_LOGGING_HELPER_ENTRY_STRING   XSTRING_IT( NDS_LOGGING_HELPER_ENTRY )

◆ STRING_IT

#define STRING_IT (   x)    #x

◆ XSTRING_IT

#define XSTRING_IT (   x)    STRING_IT( x )

Typedef Documentation

◆ nds_flush_function_type

typedef void(* nds_flush_function_type) ()

◆ nds_logging_function_type

typedef void(* nds_logging_function_type) (const char *Message)

◆ nds_logging_helper_entry_type

typedef void(* nds_logging_helper_entry_type) ()

Function Documentation

◆ nds_function_flush()

DLL_EXPORT void nds_function_flush ( nds_flush_function_type  Func)

◆ nds_function_logging()

DLL_EXPORT void nds_function_logging ( nds_logging_function_type  Func)

◆ nds_logging_check()

DLL_EXPORT int nds_logging_check ( int  Group,
int  Level 
)

◆ nds_logging_debug_level()

DLL_EXPORT int nds_logging_debug_level ( int  Group,
int  Level 
)

◆ nds_logging_disable()

DLL_EXPORT void nds_logging_disable ( int  Group)

◆ nds_logging_enable()

DLL_EXPORT void nds_logging_enable ( int  Group)

◆ nds_logging_flush()

DLL_EXPORT void nds_logging_flush ( )

◆ nds_logging_group_from_string()

DLL_EXPORT int nds_logging_group_from_string ( const char *  GroupString)

◆ nds_logging_init()

DLL_EXPORT void nds_logging_init ( )

◆ nds_logging_print_errno()

DLL_EXPORT void nds_logging_print_errno ( const char *  Leader)

◆ nds_logging_printf()

DLL_EXPORT void nds_logging_printf ( const char *  MessageFormat,
  ... 
)