aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream-b64.h
diff options
context:
space:
mode:
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;