X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/18c831dcd0ae4d660c70ccac69d27ed2a97851be..ecfe3bffa6cc019ba7e358dbe359f10e5ce6a09d:/codec/base64.h diff --git a/codec/base64.h b/codec/base64.h index 4a0a19d..e868781 100644 --- a/codec/base64.h +++ b/codec/base64.h @@ -34,6 +34,10 @@ /*----- Header files ------------------------------------------------------*/ +#ifndef MLIB_CODEC_H +# include "codec.h" +#endif + #ifndef MLIB_DSTR_H # include "dstr.h" #endif @@ -44,7 +48,7 @@ typedef struct base64_ctx { unsigned long acc; /* Accumulator for output data */ unsigned qsz; /* Length of data queued */ unsigned lnlen; /* Length of the current line */ - const char *indent; /* Newline-and-indent string */ + char *indent; /* Newline-and-indent string */ unsigned maxline; /* Maximum permitted line length */ } base64_ctx; @@ -95,6 +99,10 @@ extern void base64_decode(base64_ctx */*ctx*/, extern void base64_init(base64_ctx */*ctx*/); +/*----- Codec object interface --------------------------------------------*/ + +extern const codec_class base64_class, file64_class, base64url_class; + /*----- That's all, folks -------------------------------------------------*/ #ifdef __cplusplus