## sw-debug sw-debug |

## Synopsis

    enum                SwDebugFlags;
    extern guint        sw_debug_flags;
    #define             SW_DEBUG_ENABLED                    (category)
    #define             SW_DEBUG                            (category,
                                                             x,
                                                             ...)
    void                sw_debug_init                       (const char *string);

## Object Hierarchy

      GFlags
       +----SwDebugFlags

## Description

## Details

### enum SwDebugFlags

    typedef enum {
      SW_DEBUG_MAIN_LOOP = 1 << 0,
      SW_DEBUG_VIEWS = 1 << 1,
      SW_DEBUG_ONLINE = 1 << 2,
      SW_DEBUG_ITEM = 1 << 3,
      SW_DEBUG_CONTACT = 1 << 4,
      SW_DEBUG_TWITTER = 1 << 5,
      SW_DEBUG_LASTFM = 1 << 6,
      SW_DEBUG_CORE = 1 << 7,
      SW_DEBUG_VIMEO = 1 << 8,
      SW_DEBUG_FLICKR = 1 << 9,
      SW_DEBUG_SMUGMUG = 1 << 10,
      SW_DEBUG_PHOTOBUCKET = 1 << 11,
      SW_DEBUG_FACEBOOK = 1 << 12,
      SW_DEBUG_CLIENT_MONITOR = 1 << 13
    } SwDebugFlags;

### sw_debug_flags

    extern guint sw_debug_flags;

### SW_DEBUG_ENABLED()

    #define SW_DEBUG_ENABLED(category) (sw_debug_flags & SW_DEBUG_##category)

### SW_DEBUG()

    #define             SW_DEBUG(category,x,a...)

### sw_debug_init ()

    void                sw_debug_init                       (const char *string);