aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream-b64.h
diff options
context:
space:
mode:
authorBertrand Guiheneuf <bertrand@src.gnome.org>2000-02-28 21:36:46 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-02-28 21:36:46 +0800
commit9aefcae16c1e716039ddf8e1921e3a6be9635277 (patch)
tree2afc11369ace2ee216ba731695f280b018b46283 /camel/camel-stream-b64.h
parentef7adb93eb675bab9c648f9a009505b4e4cedb9c (diff)
downloadgsoc2013-evolution-9aefcae16c1e716039ddf8e1921e3a6be9635277.tar
gsoc2013-evolution-9aefcae16c1e716039ddf8e1921e3a6be9635277.tar.gz
gsoc2013-evolution-9aefcae16c1e716039ddf8e1921e3a6be9635277.tar.bz2
gsoc2013-evolution-9aefcae16c1e716039ddf8e1921e3a6be9635277.tar.lz
gsoc2013-evolution-9aefcae16c1e716039ddf8e1921e3a6be9635277.tar.xz
gsoc2013-evolution-9aefcae16c1e716039ddf8e1921e3a6be9635277.tar.zst
gsoc2013-evolution-9aefcae16c1e716039ddf8e1921e3a6be9635277.zip
non blocking b64 encoding is a PITA
svn path=/trunk/; revision=1974
Diffstat (limited to 'camel/camel-stream-b64.h')
-rw-r--r--camel/camel-stream-b64.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/camel/camel-stream-b64.h b/camel/camel-stream-b64.h
index 0577d03f3f..23ad7d39b2 100644
--- a/camel/camel-stream-b64.h
+++ b/camel/camel-stream-b64.h
@@ -59,6 +59,20 @@ typedef struct {
} CamelStream64DecodeStatus;
+typedef struct {
+
+ guchar state;
+ guchar keep;
+ guchar end_state;
+ guchar line_length;
+
+} CamelStream64EncodeStatus;
+
+
+typedef union {
+ CamelStream64DecodeStatus decode_status;
+ CamelStream64EncodeStatus encode_status;
+} CamelStream64Status;
typedef struct
{
@@ -71,7 +85,7 @@ typedef struct
gboolean eos;
/* decoding status */
- CamelStream64DecodeStatus decode_status;
+ CamelStream64Status status;
} CamelStreamB64;