X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fbase64.h;h=2e2ad0313f2955ad768f39e8d7738b454d728e12;hb=1e5ae8a779b693d8023ce9821b839f29e210d9e8;hp=3f30b69acf112757c76afbce83caaa8ea5a8c8a5;hpb=4a65d555b1d57bc037b7fef9d04a611c43a44d86;p=libucw.git diff --git a/ucw/base64.h b/ucw/base64.h index 3f30b69a..2e2ad031 100644 --- a/ucw/base64.h +++ b/ucw/base64.h @@ -7,21 +7,26 @@ * of the GNU Lesser General Public License. */ +#ifdef CONFIG_UCW_CLEAN_ABI +#define base64_decode ucw_base64_decode +#define base64_encode ucw_base64_encode +#endif + /** * Encodes @len bytes of data pointed to by @src by base64 encoding. * Stores them in @dest and returns the number of bytes the output * takes. */ -uns base64_encode(byte *dest, const byte *src, uns len); +uint base64_encode(byte *dest, const byte *src, uint len); /** * Decodes @len bytes of data pointed to by @src from base64 encoding. * All invalid characters are ignored. The result is stored into @dest * and length of the result is returned. */ -uns base64_decode(byte *dest, const byte *src, uns len); +uint base64_decode(byte *dest, const byte *src, uint len); /** - * Use this macro to calculate base64_encode() output buffer size. + * Use this macro to calculate @base64_encode() output buffer size. */ #define BASE64_ENC_LENGTH(x) (((x)+2)/3 *4)