| Camel Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define CAMEL_DEBUG_IMAP #define CAMEL_DEBUG_IMAP_FOLDER void camel_debug_init (void); gboolean camel_debug (const gchar *mode); gboolean camel_debug_start (const gchar *mode); void camel_debug_end (void);
void camel_debug_init (void);
Init camel debug.
CAMEL_DEBUG is set to a comma separated list of modules to debug. The modules can contain module-specific specifiers after a ':', or just act as a wildcard for the module or even specifier. e.g. 'imap' for imap debug, or 'imap:folder' for imap folder debug. Additionaly, ':folder' can be used for a wildcard for any folder operations.
gboolean camel_debug (const gchar *mode);
Check to see if a debug mode is activated. mode takes one of two forms,
a fully qualified 'module:target', or a wildcard 'module' name. It
returns a boolean to indicate if the module or module and target is
currently activated for debug output.
Returns : |
gboolean camel_debug_start (const gchar *mode);
Start debug output for a given mode, used to make sure debug output is output atomically and not interspersed with unrelated stuff.
Returns : |
Returns true if mode is set, and in which case, you must call debug_end when finished any screen output. |