Commit 508bfd59 508bfd590ed2b146ac356306a4a8c6220fd8d090 by Alain Magloire

new field mu_debug_t in structure,

we reuse the object mu_debug_t for tracing.
1 parent 27fab5ec
......@@ -19,6 +19,7 @@
#define _MAILUTILS_POP3_H
#include <mailutils/list.h>
#include <mailutils/debug.h>
#include <mailutils/stream.h>
#ifdef __cplusplus
......@@ -40,7 +41,7 @@ extern int mu_pop3_disconnect (mu_pop3_t pop3);
extern int mu_pop3_set_timeout (mu_pop3_t pop3, int timeout);
extern int mu_pop3_get_timeout (mu_pop3_t pop3, int *timeout);
extern int mu_pop3_set_debug (mu_pop3_t pop3, void (*print) __P((const char *buffer)));
extern int mu_pop3_set_debug (mu_pop3_t pop3, mu_debug_t debug);
extern int mu_pop3_apop (mu_pop3_t pop3, const char *name, const char *digest);
......
......@@ -82,7 +82,7 @@ struct _mu_pop3
char *timestamp; /* For apop, if supported. */
unsigned timeout; /* Default is 10 minutes. */
void (*debug)(const char *log); /* function to print debug long. */
mu_debug_t debug; /* debugging trace. */
enum mu_pop3_state state; /* Indicate the state of the running command. */
......