wocky-debug

wocky-debug

Synopsis

enum                DebugFlags;
#define             DEBUG_XMPP
void                wocky_debug_set_flags_from_env      (void);
void                wocky_debug_set_flags               (DebugFlags flags);
gboolean            wocky_debug_flag_is_set             (DebugFlags flag);
void                wocky_debug_valist                  (DebugFlags flag,
                                                         const gchar *format,
                                                         va_list args);
void                wocky_debug                         (DebugFlags flag,
                                                         const gchar *format,
                                                         ...);
void                wocky_debug_stanza                  (DebugFlags flag,
                                                         WockyStanza *stanza,
                                                         const gchar *format,
                                                         ...);
void                wocky_debug_node_tree               (DebugFlags flag,
                                                         WockyNodeTree *tree,
                                                         const gchar *format,
                                                         ...);
#define             DEBUG                               (format,
                                                         ...)
#define             DEBUG_STANZA                        (stanza,
                                                         format,
                                                         ...)
#define             DEBUG_NODE_TREE                     (tree,
                                                         format,
                                                         ...)
#define             DEBUGGING
#define             NODE_DEBUG                          (n,
                                                         s)

Description

Details

enum DebugFlags

typedef enum
{
  DEBUG_TRANSPORT         = 1 << 0,
  DEBUG_NET               = 1 << 1,
  DEBUG_XMPP_READER       = 1 << 2,
  DEBUG_XMPP_WRITER       = 1 << 3,
  DEBUG_AUTH              = 1 << 4,
  DEBUG_SSL               = 1 << 5,
  DEBUG_RMULTICAST        = 1 << 6,
  DEBUG_RMULTICAST_SENDER = 1 << 7,
  DEBUG_MUC_CONNECTION    = 1 << 8,
  DEBUG_BYTESTREAM        = 1 << 9,
  DEBUG_FILE_TRANSFER     = 1 << 10,
  DEBUG_PORTER            = 1 << 11,
  DEBUG_CONNECTOR         = 1 << 12,
  DEBUG_ROSTER            = 1 << 13,
  DEBUG_TLS               = 1 << 14,
  DEBUG_PUBSUB            = 1 << 15,
  DEBUG_DATA_FORM         = 1 << 16,
  DEBUG_PING              = 1 << 17,
  DEBUG_HEARTBEAT         = 1 << 18,
} DebugFlags;


DEBUG_XMPP

#define DEBUG_XMPP (DEBUG_XMPP_READER | DEBUG_XMPP_WRITER)


wocky_debug_set_flags_from_env ()

void                wocky_debug_set_flags_from_env      (void);


wocky_debug_set_flags ()

void                wocky_debug_set_flags               (DebugFlags flags);

flags :


wocky_debug_flag_is_set ()

gboolean            wocky_debug_flag_is_set             (DebugFlags flag);

flag :

Returns :


wocky_debug_valist ()

void                wocky_debug_valist                  (DebugFlags flag,
                                                         const gchar *format,
                                                         va_list args);

flag :

format :

args :


wocky_debug ()

void                wocky_debug                         (DebugFlags flag,
                                                         const gchar *format,
                                                         ...);

flag :

format :

... :


wocky_debug_stanza ()

void                wocky_debug_stanza                  (DebugFlags flag,
                                                         WockyStanza *stanza,
                                                         const gchar *format,
                                                         ...);

flag :

stanza :

format :

... :


wocky_debug_node_tree ()

void                wocky_debug_node_tree               (DebugFlags flag,
                                                         WockyNodeTree *tree,
                                                         const gchar *format,
                                                         ...);

flag :

tree :

format :

... :


DEBUG()

#define             DEBUG(format, ...)

format :

... :


DEBUG_STANZA()

#define             DEBUG_STANZA(stanza, format, ...)

stanza :

format :

... :


DEBUG_NODE_TREE()

#define             DEBUG_NODE_TREE(tree, format, ...)

tree :

format :

... :


DEBUGGING

#define             DEBUGGING


NODE_DEBUG()

#define             NODE_DEBUG(n, s)

n :

s :