diff options
Diffstat (limited to 'camel/camel-stream.h')
-rw-r--r-- | camel/camel-stream.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/camel/camel-stream.h b/camel/camel-stream.h index e58cfd92ff..925d5583a0 100644 --- a/camel/camel-stream.h +++ b/camel/camel-stream.h @@ -34,8 +34,8 @@ extern "C" { #include <gtk/gtk.h> #define CAMEL_STREAM_TYPE (camel_stream_get_type ()) -#define CAMEL_STREAM(obj) (GTK_CHECK_CAST((obj), CAMEL_STREAM_TYPE, CamelMimeMessage)) -#define CAMEL_STREAM_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), CAMEL_STREAM_TYPE, CamelMimeMessageClass)) +#define CAMEL_STREAM(obj) (GTK_CHECK_CAST((obj), CAMEL_STREAM_TYPE, CamelStream)) +#define CAMEL_STREAM_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), CAMEL_STREAM_TYPE, CamelStreamClass)) #define IS_CAMEL_STREAM(o) (GTK_CHECK_TYPE((o), CAMEL_STREAM_TYPE)) @@ -52,7 +52,7 @@ typedef struct { GtkObjectClass parent_class; /* Virtual methods */ -gint (*read) (CamelStream *stream, gchar **buffer, gint n); +gint (*read) (CamelStream *stream, gchar *buffer, gint n); gint (*write) (CamelStream *stream, gchar *buffer, gint n); void (*flush) (CamelStream *stream); gint (*available) (CamelStream *stream); @@ -68,6 +68,9 @@ GtkType camel_stream_get_type (void); /* public methods */ +gint camel_stream_read (CamelStream *stream, gchar *buffer, gint n); +gint camel_stream_write (CamelStream *stream, gchar *buffer, gint n); +void camel_stream_close (CamelStream *stream); #ifdef __cplusplus } |